From 1e28cd1926ee8bc915783416135cd64f08b5ad5f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 12 Feb 2022 12:13:57 +0100 Subject: Fix warning * isofs/lookup.c (diskfs_lookup_hard): Make sure we return ENOENT in the theoretical case that the directory would be completely empty. --- isofs/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isofs') 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; -- cgit v1.2.3