In open_cmnd(), return true, not false, if we the /dev/fd/N pathname

is not present.  We don't want to fail a match because of this.
This commit is contained in:
Todd C. Miller
2018-04-23 14:42:35 -06:00
parent 3f1ec0c5fd
commit 6e22da3412

View File

@@ -539,7 +539,7 @@ open_cmnd(const char *path, const struct sudo_digest *digest, int *fdp)
snprintf(fdpath, sizeof(fdpath), "/dev/fd/%d", fd);
if (stat(fdpath, &sb) != 0) {
close(fd);
debug_return_bool(false);
debug_return_bool(true);
}
/*