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:
1118a1d
)
- small size tweak
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Sat, 20 Jan 2007 21:32:38 +0000
(21:32 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Sat, 20 Jan 2007 21:32:38 +0000
(21:32 -0000)
coreutils/touch.c
patch
|
blob
|
history
diff --git
a/coreutils/touch.c
b/coreutils/touch.c
index e1af7d0dce5458dcd212361f0b31ed4850ce47c5..72bf904f8fa2926eccc2b624159b5ade14456169 100644
(file)
--- a/
coreutils/touch.c
+++ b/
coreutils/touch.c
@@
-29,10
+29,8
@@
int touch_main(int argc, char **argv)
{
int fd;
- int flags;
int status = EXIT_SUCCESS;
-
- flags = getopt32(argc, argv, "c");
+ bool flags = (getopt32(argc, argv, "c") & 1);
argv += optind;
@@
-43,7
+41,7
@@
int touch_main(int argc, char **argv)
do {
if (utime(*argv, NULL)) {
if (errno == ENOENT) { /* no such file*/
- if (flags
& 1) {
/* Creation is disabled, so ignore. */
+ if (flags
) {
/* Creation is disabled, so ignore. */
continue;
}
/* Try to create the file. */