=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/sudo.c,v retrieving revision 1.24 retrieving revision 1.24.2.1 diff -c -r1.24 -r1.24.2.1 *** src/usr.bin/sudo/Attic/sudo.c 2005/01/31 18:53:33 1.24 --- src/usr.bin/sudo/Attic/sudo.c 2005/06/21 00:17:41 1.24.2.1 *************** *** 275,280 **** --- 275,282 ---- /* 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, *************** *** 389,402 **** sudo_ldap_list_matches(); #endif 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. */ --- 391,396 ----