Commit Diff


commit - 35545f52a53ce055454fe27ec062ac3053d8c1a2
commit + 4bcab5925fb2cae8803068075787791c9f5c074e
blob - 60e139dce2936a7738f88654b2944a909e5e38c7
blob + e5751aeaa477cf14e985e77ee4dec9e013a1e994
--- unreliablefs_ops.c
+++ unreliablefs_ops.c
@@ -26,11 +26,9 @@ int unreliable_lstat(const char *path, struct stat *bu
     memset(buf, 0, sizeof(struct stat));
     if (lstat(path, buf) == -1) {
         return -errno;
-    } else {
-        return 0;
     }
 
-    return -ENOENT;
+    return 0;
 }
 
 int unreliable_getattr(const char *path, struct stat *buf)
@@ -43,11 +41,9 @@ int unreliable_getattr(const char *path, struct stat *
     memset(buf, 0, sizeof(struct stat));
     if (lstat(path, buf) == -1) {
         return -errno;
-    } else {
-        return 0;
     }
 
-    return -ENOENT;
+    return 0;
 }
 
 int unreliable_readlink(const char *path, char *buf, size_t bufsiz)