Index: native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc |
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc b/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc |
index 0008284253ace3c0c99b10b4be20b67622794ed8..328643a2435514cd6d441e52b90f1283623841f0 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc |
+++ b/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc |
@@ -34,7 +34,7 @@ Error MountHtml5Fs::Open(const Path& path, int mode, MountNode** out_node) { |
PP_Resource fileref = ppapi()->GetFileRefInterface() |
->Create(filesystem_resource_, path.Join().c_str()); |
if (!fileref) |
- return ENOSYS; |
+ return ENOENT; |
MountNodeHtml5Fs* node = new MountNodeHtml5Fs(this, fileref); |
error = node->Init(mode); |
@@ -59,7 +59,7 @@ Error MountHtml5Fs::Mkdir(const Path& path, int permissions) { |
ppapi()->GetFileRefInterface()->Create(filesystem_resource_, |
path.Join().c_str())); |
if (!fileref_resource.pp_resource()) |
- return EIO; |
+ return ENOENT; |
int32_t result = ppapi()->GetFileRefInterface()->MakeDirectory( |
fileref_resource.pp_resource(), PP_FALSE, PP_BlockUntilComplete()); |
@@ -81,7 +81,7 @@ Error MountHtml5Fs::Remove(const Path& path) { |
ppapi()->GetFileRefInterface()->Create(filesystem_resource_, |
path.Join().c_str())); |
if (!fileref_resource.pp_resource()) |
- return ENOSYS; |
+ return ENOENT; |
int32_t result = ppapi()->GetFileRefInterface() |
->Delete(fileref_resource.pp_resource(), PP_BlockUntilComplete()); |