http://git.etherboot.org
/
people
/
mcb30
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce6e48c
)
cp: -r and -R imply -d (coreutils compat)
author
vda
<vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 25 Sep 2007 18:06:36 +0000
(18:06 +0000)
committer
vda
<vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 25 Sep 2007 18:06:36 +0000
(18:06 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20024
69ca8d6d
-28ef-0310-b511-
8ec308f3f277
coreutils/cp.c
patch
|
blob
|
history
diff --git
a/coreutils/cp.c
b/coreutils/cp.c
index
889e460
..
046067f
100644
(file)
--- a/
coreutils/cp.c
+++ b/
coreutils/cp.c
@@
-44,8
+44,9
@@
int cp_main(int argc, char **argv)
// Soft- and hardlinking don't mix
// -P and -d are the same (-P is POSIX, -d is GNU)
// -r and -R are the same
+ // -R (and therefore -r) switches on -d (coreutils does this)
// -a = -pdR
- opt_complementary = "-2:l--s:s--l:Pd:rR:apdR";
+ opt_complementary = "-2:l--s:s--l:Pd:rR
d:Rd
:apdR";
flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPHL");
argc -= optind;
argv += optind;