Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-11-28 22:25:32 +0300
committerDenis Vlasenko <vda.linux@googlemail.com>2007-11-28 22:25:32 +0300
commitc253778de92441b61806e1e4e7806e91f17ea50f (patch)
treee9f0377976d600007282378bec27aec51d7fd999 /coreutils/touch.c
parent35ff74676b54b1cae5a6324d2517568393fedbc8 (diff)
touch: accept and ignore -f
Diffstat (limited to 'coreutils/touch.c')
-rw-r--r--coreutils/touch.c3
1 files changed, 2 insertions, 1 deletions
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) {