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:
1a781a4
)
Continue processing files if we are asked to touch, but not create, a file
author
Matt Kraai
<kraai@debian.org>
Fri, 7 Dec 2001 21:27:38 +0000
(21:27 -0000)
committer
Matt Kraai
<kraai@debian.org>
Fri, 7 Dec 2001 21:27:38 +0000
(21:27 -0000)
which doesn't exist.
coreutils/touch.c
patch
|
blob
|
history
diff --git
a/coreutils/touch.c
b/coreutils/touch.c
index 267349596bcab7badaed658ec48616e63fc9e053..3e2e600f3f196b1a20b3111a27d2dd66f19f5aaf 100644
(file)
--- a/
coreutils/touch.c
+++ b/
coreutils/touch.c
@@
-56,9
+56,11
@@
extern int touch_main(int argc, char **argv)
fd = open(*argv, (create == FALSE) ? O_RDWR : O_RDWR | O_CREAT,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
if (fd < 0) {
- if (create == FALSE && errno == ENOENT)
- return EXIT_SUCCESS;
- else {
+ if (create == FALSE && errno == ENOENT) {
+ argc--;
+ argv++;
+ continue;
+ } else {
perror_msg_and_die("%s", *argv);
}
}