Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc

Issue 17450014: [NaCl SDK] nacl_io html5fs: Malformed file paths set errno to ENOENT. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a4893ec28f6f5dd47486c43bac08bfd20fe780c8 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);
@@ -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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698