]> granicus.if.org Git - sudo/commitdiff
add missing inform_user()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 16 Nov 1998 22:38:27 +0000 (22:38 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 16 Nov 1998 22:38:27 +0000 (22:38 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 22ecfb1adb163dddc1b33bdd1ff8660eb69b4456..8893a7b8d2ad29f16db94ecc97dfa648031818ba 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -379,12 +379,14 @@ int main(argc, argv)
            check_user();
 
 #ifndef DONT_LEAK_PATH_INFO
+           log_error(rtn);
            if (cmnd_status == NOT_FOUND_DOT)
                (void) fprintf(stderr, "%s: ignoring `%s' found in '.'\nUse `sudo ./%s' if this is the `%s' you wish to run.\n", Argv[0], cmnd, cmnd, cmnd);
            else if (cmnd_status == NOT_FOUND)
                (void) fprintf(stderr, "%s: %s: command not found\n", Argv[0],
                    cmnd);
-           log_error(rtn);
+           else
+               inform_user(rtn);
            exit(1);
            break;
 #endif /* DONT_LEAK_PATH_INFO */