From 71ad4e384aa6e69d6fbf27fd131bc38eb34d9a29 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 20 Oct 2023 22:34:21 +0300 Subject: [PATCH] cp --- coreutils/cp.c | 5 ----- 1 file changed, 5 deletions(-) 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)