Return to fileio.c CVS log | Up to [local] / src / usr.bin / mg |
version 1.18, 2001/07/06 13:32:45 | version 1.19, 2001/07/09 07:04:49 | ||
---|---|---|---|
|
|
||
if ((pid = vfork())) { | if ((pid = vfork())) { | ||
if (pid == -1) | if (pid == -1) | ||
return -1; | return -1; | ||
execl("/bin/cp", "cp", frname, toname, NULL); | execl("/bin/cp", "cp", frname, toname, (char *)NULL); | ||
_exit(1); /* shouldn't happen */ | _exit(1); /* shouldn't happen */ | ||
} | } | ||
waitpid(pid, &status, 0); | waitpid(pid, &status, 0); |