projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ff746
)
touch: accept and ignore -f
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 28 Nov 2007 19:25:32 +0000
(19:25 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 28 Nov 2007 19:25:32 +0000
(19:25 -0000)
coreutils/touch.c
patch
|
blob
|
history
diff --git
a/coreutils/touch.c
b/coreutils/touch.c
index 1b83dc44cc2c65e975bdcb0c55ffba11ce10ff45..3fe8b64ad1d1446787023f868d07fcd4118194fa 100644
(file)
--- 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, "c
f
");
+ flags &= 1; /* ignoring -f (BSD compat thingy) */
argv += optind;
if (!*argv) {