diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-25 18:06:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-25 18:06:36 +0000 |
commit | ea7645bab62c6f68c755cf717662bceaa04858ed (patch) | |
tree | 7d52e668bb6780bc822d5059e477ae4292463d6e /coreutils | |
parent | 35465a3f005b99e25cea3cfa42a9de348976be8a (diff) | |
download | busybox-w32-ea7645bab62c6f68c755cf717662bceaa04858ed.tar.gz busybox-w32-ea7645bab62c6f68c755cf717662bceaa04858ed.tar.bz2 busybox-w32-ea7645bab62c6f68c755cf717662bceaa04858ed.zip |
cp: -r and -R imply -d (coreutils compat)
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c index 889e4604d..046067f35 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -44,8 +44,9 @@ int cp_main(int argc, char **argv) | |||
44 | // Soft- and hardlinking don't mix | 44 | // Soft- and hardlinking don't mix |
45 | // -P and -d are the same (-P is POSIX, -d is GNU) | 45 | // -P and -d are the same (-P is POSIX, -d is GNU) |
46 | // -r and -R are the same | 46 | // -r and -R are the same |
47 | // -R (and therefore -r) switches on -d (coreutils does this) | ||
47 | // -a = -pdR | 48 | // -a = -pdR |
48 | opt_complementary = "-2:l--s:s--l:Pd:rR:apdR"; | 49 | opt_complementary = "-2:l--s:s--l:Pd:rRd:Rd:apdR"; |
49 | flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPHL"); | 50 | flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPHL"); |
50 | argc -= optind; | 51 | argc -= optind; |
51 | argv += optind; | 52 | argv += optind; |