diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-14 16:21:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-14 16:21:29 -0700 |
commit | 50d5267788a63edac12bd7b11389108e63959a05 (patch) | |
tree | 55f3daaee254fc908d96abb1fdfc42884ac0f201 /src/library.js | |
parent | d98e6e30ca7ac2e5ffa86306e1155f832363792b (diff) | |
parent | e1d208d8caff0e0afee7cbe1eebde12811c7d8d8 (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/library.js')
-rw-r--r-- | src/library.js | 2 |
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; } |