commit 4bcab5925fb2cae8803068075787791c9f5c074e from: Sergey Bronnikov date: Sat Feb 27 16:11:12 2021 UTC Return 0 by default in lstat() and getattr() 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)