summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 12:13:57 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 12:13:57 +0100
commit1e28cd1926ee8bc915783416135cd64f08b5ad5f (patch)
tree2c2ee3e633900629da9d48908146633756319a2c
parentead23b8777540223a69d5df898709bd1cea57e00 (diff)
Fix warning
* isofs/lookup.c (diskfs_lookup_hard): Make sure we return ENOENT in the theoretical case that the directory would be completely empty.
-rw-r--r--isofs/lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isofs/lookup.c b/isofs/lookup.c
index 3590f2d5..59e48cdc 100644
--- a/isofs/lookup.c
+++ b/isofs/lookup.c
@@ -69,7 +69,7 @@ error_t
diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type,
struct node **npp, struct dirstat *ds, struct protid *cred)
{
- error_t err = 0;
+ error_t err = ENOENT;
struct lookup_context ctx;
int namelen;
int spec_dotdot;