cp
This commit is contained in:
parent
d5c55abd21
commit
71ad4e384a
@ -147,11 +147,6 @@ int main(const int argc, char **argv) {
|
||||
ret = cptree(argv[i], argv[argc - 1]);
|
||||
|
||||
else {
|
||||
if (mkdir(argv[argc - 1], 0777) < 0) {
|
||||
fprintf(stderr, "cp: %s\n", strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (; i < argc - 1; i++) {
|
||||
char *new_path = make_path(argv[argc - 1], basename(argv[i]));
|
||||
if (new_path == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user