← Commit list

427f80873

Ladislav Michl
Ladislav Michl
2025-07-30
SUCCESS Duration: 156s

Subject

date: return failure exit code on clock_settime error

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 →

coreutils/date.c+1 -1
@@ -289,7 +289,7 @@ int date_main(int argc UNUSED_PARAM, char **argv)
/* if setting time, set it */
if ((opt & OPT_SET) && clock_settime(CLOCK_REALTIME, &ts) < 0) {
- bb_simple_perror_msg("can't set date");
+ bb_simple_perror_msg_and_die("can't set date");
}
}