aboutsummaryrefslogtreecommitdiff
path: root/src/library_fs.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-23 15:32:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-23 15:32:43 -0700
commit2ebcf95b0e305f777143e3ad783896c17b769324 (patch)
treee0a60a9c313bf4526bec8fe2029d341302caa2f9 /src/library_fs.js
parent8c6578568956816cbb518584cbfa1321587727a7 (diff)
parent3eb16db0edc678ca6183b3d0254b925aee575469 (diff)
Merge branch 'incoming' into proxyGL
Diffstat (limited to 'src/library_fs.js')
-rw-r--r--src/library_fs.js3
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') }}})) {