svn commit: trunk/busybox/coreutils

vda at busybox.net vda at busybox.net
Tue Sep 25 11:06:36 PDT 2007


Author: vda
Date: 2007-09-25 11:06:36 -0700 (Tue, 25 Sep 2007)
New Revision: 20024

Log:
cp: -r and -R imply -d (coreutils compat)



Modified:
   trunk/busybox/coreutils/cp.c


Changeset:
Modified: trunk/busybox/coreutils/cp.c
===================================================================
--- trunk/busybox/coreutils/cp.c	2007-09-25 17:21:33 UTC (rev 20023)
+++ trunk/busybox/coreutils/cp.c	2007-09-25 18:06:36 UTC (rev 20024)
@@ -44,8 +44,9 @@
 	// 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:rRd:Rd:apdR";
 	flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPHL");
 	argc -= optind;
 	argv += optind;



More information about the busybox-cvs mailing list