aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-14 16:21:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-14 16:21:29 -0700
commit50d5267788a63edac12bd7b11389108e63959a05 (patch)
tree55f3daaee254fc908d96abb1fdfc42884ac0f201 /src
parentd98e6e30ca7ac2e5ffa86306e1155f832363792b (diff)
parente1d208d8caff0e0afee7cbe1eebde12811c7d8d8 (diff)
Merge pull request #1379 from inolen/open_fixes
open should not set EISDIR when opening an existing directory with O_CRE...
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index f9cfe68f..8ef37c77 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1211,7 +1211,7 @@ LibraryManager.library = {
___setErrNo(ERRNO_CODES.EEXIST);
return -1;
}
- if ((isWrite || isCreate || isTruncate) && target.isFolder) {
+ if ((isWrite || isTruncate) && target.isFolder) {
___setErrNo(ERRNO_CODES.EISDIR);
return -1;
}