=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/sudo.c,v retrieving revision 1.22 retrieving revision 1.22.4.1 diff -u -r1.22 -r1.22.4.1 --- src/usr.bin/sudo/Attic/sudo.c 2004/01/12 19:13:21 1.22 +++ src/usr.bin/sudo/Attic/sudo.c 2005/06/21 00:10:23 1.22.4.1 @@ -296,6 +296,8 @@ if (runas_pw == NULL) log_error(NO_MAIL|MSG_ONLY, "no passwd entry for %s!", *user_runas); } + if (safe_cmnd == NULL) + safe_cmnd = user_cmnd; /* * Look up the timestamp dir owner if one is specified. @@ -378,14 +380,6 @@ else if (sudo_mode == MODE_LIST) { list_matches(); 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. */