From c253778de92441b61806e1e4e7806e91f17ea50f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 28 Nov 2007 19:25:32 +0000 Subject: touch: accept and ignore -f --- coreutils/touch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreutils/touch.c b/coreutils/touch.c index 1b83dc44c..3fe8b64ad 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c @@ -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) { -- cgit v1.2.3