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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user