diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-07-13 20:17:19 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-07-13 20:17:19 -0700 |
commit | e1d208d8caff0e0afee7cbe1eebde12811c7d8d8 (patch) | |
tree | 4b49a36643abd4c5e7057c30806f62e1e839b12a /src | |
parent | d2317359b2bb02ed4c8f773867c470c5a92a181e (diff) |
open should not set EISDIR when opening an existing directory with O_CREAT
Diffstat (limited to 'src')
-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; } |