When CP_MORE was disabled, the d flag was still in the [-exclusion] list at the end...
authorRob Landley <rob@landley.net>
Thu, 1 Jan 2015 03:23:37 +0000 (21:23 -0600)
committerRob Landley <rob@landley.net>
Thu, 1 Jan 2015 03:23:37 +0000 (21:23 -0600)
toys/posix/cp.c

index e83daba..c1a438f 100644 (file)
@@ -7,7 +7,7 @@
 // This is subtle: MV options shared with CP must be in same order (right to
 // left) as CP for FLAG_X macros to work out right.
 
-USE_CP(NEWTOY(cp, "<2RHLPp"USE_CP_MORE("rdaslvnF")"fi[-HLPd]"USE_CP_MORE("[-ni]"), TOYFLAG_BIN))
+USE_CP(NEWTOY(cp, "<2RHLPp"USE_CP_MORE("rdaslvnF")"fi[-HLP"USE_CP_MORE("d")"]"USE_CP_MORE("[-ni]"), TOYFLAG_BIN))
 USE_MV(NEWTOY(mv, "<2"USE_CP_MORE("vnF")"fi"USE_CP_MORE("[-ni]"), TOYFLAG_BIN))
 USE_INSTALL(NEWTOY(install, "<1cdDpsvm:o:g:", TOYFLAG_USR|TOYFLAG_BIN))
 *