mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
- not sure but i may have had the shutdown-time wrong and no records to verify
This commit is contained in:
parent
69d5ba2f95
commit
61082ec1cc
@ -73,7 +73,7 @@ int last_main(int argc, char **argv ATTRIBUTE_UNUSED)
|
|||||||
/* do we really need to be cautious here? */
|
/* do we really need to be cautious here? */
|
||||||
n = index_in_strings(_ut_usr, ut.ut_user);
|
n = index_in_strings(_ut_usr, ut.ut_user);
|
||||||
if (++n > 0)
|
if (++n > 0)
|
||||||
ut.ut_type = n;
|
ut.ut_type = n != 3 ? n : SHUTDOWN_TIME;
|
||||||
#else
|
#else
|
||||||
if (strncmp(ut.ut_user, "shutdown", 8) == 0)
|
if (strncmp(ut.ut_user, "shutdown", 8) == 0)
|
||||||
ut.ut_type = SHUTDOWN_TIME;
|
ut.ut_type = SHUTDOWN_TIME;
|
||||||
|
Loading…
Reference in New Issue
Block a user