diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-28 19:25:32 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-28 19:25:32 +0000 |
commit | c253778de92441b61806e1e4e7806e91f17ea50f (patch) | |
tree | e9f0377976d600007282378bec27aec51d7fd999 /coreutils | |
parent | 35ff74676b54b1cae5a6324d2517568393fedbc8 (diff) | |
download | busybox-w32-c253778de92441b61806e1e4e7806e91f17ea50f.tar.gz busybox-w32-c253778de92441b61806e1e4e7806e91f17ea50f.tar.bz2 busybox-w32-c253778de92441b61806e1e4e7806e91f17ea50f.zip |
touch: accept and ignore -f
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/touch.c | 3 |
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) | |||
26 | { | 26 | { |
27 | int fd; | 27 | int fd; |
28 | int status = EXIT_SUCCESS; | 28 | int status = EXIT_SUCCESS; |
29 | int flags = getopt32(argv, "c"); | 29 | int flags = getopt32(argv, "cf"); |
30 | 30 | ||
31 | flags &= 1; /* ignoring -f (BSD compat thingy) */ | ||
31 | argv += optind; | 32 | argv += optind; |
32 | 33 | ||
33 | if (!*argv) { | 34 | if (!*argv) { |