diff --git a/coreutils/cp.c b/coreutils/cp.c index ca6d7bc..b4daa95 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c @@ -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)