]> granicus.if.org Git - sudo/commitdiff
exit(1) if user enters no passwd
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Jan 1998 04:41:21 +0000 (04:41 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Jan 1998 04:41:21 +0000 (04:41 +0000)
check.c

diff --git a/check.c b/check.c
index 70420164ad89607845612c3c27524c34fe9d4e6f..b7a973b3b6b21a29f336f488149c84c00fbcf9e2 100644 (file)
--- a/check.c
+++ b/check.c
@@ -528,7 +528,7 @@ static void check_passwd()
        /* Exit loop on nil password */
        if (!pass || *pass == '\0') {
            if (counter == TRIES_FOR_PASSWORD)
-               exit(0);
+               exit(1);
            else
                break;
        }