be_root/be_user is now down in sudo_realpath()

This commit is contained in:
Todd C. Miller
1994-07-25 22:32:30 +00:00
parent 7b70cafbb2
commit 2624e7ee72
2 changed files with 0 additions and 9 deletions

3
sudo.c
View File

@@ -294,10 +294,7 @@ static void load_globals()
cmnd = "validate";
} else {
strncpy(path, Argv[1], MAXPATHLEN)[MAXPATHLEN] = 0;
/* become root for find_path() only */
be_root();
cmnd = find_path(path); /* get the absolute path */
be_user();
if (cmnd == NULL) {
(void) fprintf(stderr, "%s: %s: command not found\n", Argv[0], Argv[1]);
exit(1);