This commit is contained in:
Your Name 2023-10-20 22:34:21 +03:00
parent d5c55abd21
commit 71ad4e384a

View File

@ -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)