← Commit list

c253778de

Denis Vlasenko
Denis Vlasenko
2007-11-28
FAILED Duration: 12s

Subject

touch: accept and ignore -f

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 -1
@@ -26,8 +26,9 @@ int touch_main(int argc, char **argv)
{
int fd;
int status = EXIT_SUCCESS;
- int flags = getopt32(argv, "c");
+ int flags = getopt32(argv, "cf");
+ flags &= 1; /* ignoring -f (BSD compat thingy) */
argv += optind;
if (!*argv) {