diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-06-19 22:00:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-06-19 22:00:09 +0000 |
commit | 2e5c48261179adc15f565023a7520fd314ac0588 (patch) | |
tree | 5b8882d626a630d3457372745daa74e93c2a3e96 /usr.bin/sudo/sudo.c | |
parent | 47adb4253e32a37f97b1b4a936ecc670f80c74f1 (diff) |
Update to sudo 1.6.8p9
Diffstat (limited to 'usr.bin/sudo/sudo.c')
-rw-r--r-- | usr.bin/sudo/sudo.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.bin/sudo/sudo.c b/usr.bin/sudo/sudo.c index 858b968a54a..3313b000cfb 100644 --- a/usr.bin/sudo/sudo.c +++ b/usr.bin/sudo/sudo.c @@ -275,6 +275,8 @@ main(argc, argv, envp) /* Validate the user but don't search for pseudo-commands. */ validated = sudoers_lookup(pwflag); } + if (safe_cmnd == NULL) + safe_cmnd = user_cmnd; /* * If we are using set_perms_posix() and the stay_setuid flag was not set, @@ -391,14 +393,6 @@ main(argc, argv, envp) exit(0); } - /* This *must* have been set if we got a match but... */ - if (safe_cmnd == NULL) { - log_error(MSG_ONLY, - "internal error, safe_cmnd never got set for %s; %s", - user_cmnd, - "please report this error at http://courtesan.com/sudo/bugs/"); - } - /* Override user's umask if configured to do so. */ if (def_umask != 0777) (void) umask(def_umask); |