commit f1bd877c3c4927fc42a19d55ea7f913d96979d7a
parent 0bdc818e6da7f8deb1ab3841c81745e7a0f0cdce
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Tue, 31 Aug 2021 22:46:27 -0700
Fix installation program
If stat succeeds errno is left unchanged from the previous loop
raising false positives.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/module.c b/lib/module.c
@@ -151,7 +151,8 @@ usage:
errno = ENAMETOOLONG;
die(ent->fts_path);
}
-
+
+ errno = 0;
if (stat(new, &st) < 0 && errno != ENOENT)
die(new);