diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-23 15:32:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-23 15:32:43 -0700 |
commit | 2ebcf95b0e305f777143e3ad783896c17b769324 (patch) | |
tree | e0a60a9c313bf4526bec8fe2029d341302caa2f9 /src/library_fs.js | |
parent | 8c6578568956816cbb518584cbfa1321587727a7 (diff) | |
parent | 3eb16db0edc678ca6183b3d0254b925aee575469 (diff) |
Merge branch 'incoming' into proxyGL
Diffstat (limited to 'src/library_fs.js')
-rw-r--r-- | src/library_fs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library_fs.js b/src/library_fs.js index d825892c..a75dab97 100644 --- a/src/library_fs.js +++ b/src/library_fs.js @@ -932,6 +932,9 @@ mergeInto(LibraryManager.library, { }); }, open: function(path, flags, mode, fd_start, fd_end) { + if (path === "") { + throw new FS.ErrnoError(ERRNO_CODES.ENOENT); + } flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags; mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode; if ((flags & {{{ cDefine('O_CREAT') }}})) { |