]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Replacing exit with return 229/head
authored <ed@s5h.net>
Mon, 9 Mar 2020 18:01:32 +0000 (18:01 +0000)
committered <ed@s5h.net>
Mon, 9 Mar 2020 18:01:32 +0000 (18:01 +0000)
src/faillog.c

index 3ab48db36d914a4c6ad5795130443fc6eb15c349..e2c7838342a6315900682e9a3895f2d6c05db0dd 100644 (file)
@@ -165,7 +165,7 @@ static void print_one (/*@null@*/const struct passwd *pw, bool force)
        tm = localtime (&fl.fail_time);
        if (!tm) {
                fprintf (stderr, "Cannot read time from faillog.\n");
-               exit (EXIT_FAILURE);
+               return;
        }
 #ifdef HAVE_STRFTIME
        strftime (ptime, sizeof (ptime), "%D %H:%M:%S %z", tm);