projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
990f808
)
Fix a bug whereby cp would fail to parse an option like
author
Jim Meyering
<jim@meyering.net>
Wed, 11 Dec 2002 23:44:23 +0000
(23:44 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 11 Dec 2002 23:44:23 +0000
(23:44 +0000)
--preserve=mode,ownership.
(decode_preserve_arg): Advance `comma' to
point the character following the comma.
src/cp.c
patch
|
blob
|
history
diff --git
a/src/cp.c
b/src/cp.c
index
76e124a
..
9bf607e
100644
(file)
--- a/
src/cp.c
+++ b/
src/cp.c
@@
-785,9
+785,9
@@
decode_preserve_arg (char const *arg, struct cp_options *x, int on_off)
char *comma = strchr (s, ',');
enum File_attribute val;
- /*
put a NUL in its place
*/
+ /*
If we found a comma, put a NUL in its place and advance.
*/
if (comma)
- *comma = 0;
+ *comma
++
= 0;
/* process S. */
val = XARGMATCH ("--preserve", s, preserve_args, preserve_vals);