← Commit list

61082ec1c

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2008-05-22
FAILED Duration: 27s

Subject

- not sure but i may have had the shutdown-time wrong and no records to verify

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/last.c+1 -1
@@ -73,7 +73,7 @@ int last_main(int argc, char **argv ATTRIBUTE_UNUSED)
/* do we really need to be cautious here? */
n = index_in_strings(_ut_usr, ut.ut_user);
if (++n > 0)
- ut.ut_type = n;
+ ut.ut_type = n != 3 ? n : SHUTDOWN_TIME;
#else
if (strncmp(ut.ut_user, "shutdown", 8) == 0)
ut.ut_type = SHUTDOWN_TIME;