diff --git a/find_path.c b/find_path.c index 82885122a..516db4175 100644 --- a/find_path.c +++ b/find_path.c @@ -196,7 +196,7 @@ char *qualify(n) * is it a bogus path? */ if (stat(n, &statbuf)) { - if (errno != ENOENT) { + if (errno != ENOENT && errno != EPERM) { fprintf(stderr, "sudo: Can't stat %s: ", n); perror(""); }