← Commit list

d19f4aaa2

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2007-01-20
FAILED Duration: 3s

Subject

- small size tweak

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/touch.c+2 -4
@@ -29,10 +29,8 @@
int touch_main(int argc, char **argv)
{
int fd;
- int flags;
int status = EXIT_SUCCESS;
-
- flags = getopt32(argc, argv, "c");
+ bool flags = (getopt32(argc, argv, "c") & 1);
argv += optind;
@@ -43,7 +41,7 @@ int touch_main(int argc, char **argv)
do {
if (utime(*argv, NULL)) {
if (errno == ENOENT) { /* no such file*/
- if (flags & 1) { /* Creation is disabled, so ignore. */
+ if (flags) { /* Creation is disabled, so ignore. */
continue;
}
/* Try to create the file. */