bin/mv: Temporary fix

The current MInix cp commands doesn't support the option mv expects
to be able to give to it. This patch can be reverted as soon as cp
has been imported.

Change-Id: If4d805726b7bfe4cd9aa2d9603c388b1df467050
This commit is contained in:
Lionel Sambuc 2014-07-16 17:45:58 +02:00
parent ebe3309a13
commit c8d179ff56

View file

@ -347,7 +347,12 @@ copy(char *from, char *to)
int status;
if ((pid = vfork()) == 0) {
#if defined(__minix)
/* LSC: This is required as long as we have not imported cp */
execl(_PATH_CP, "cp", vflg ? "-Rpv" : "-Rp", "--", from, to, NULL);
#else
execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", "--", from, to, NULL);
#endif /* defined(__minix) */
warn("%s", _PATH_CP);
_exit(1);
}