From b935b6e43bcbb7616f4b6e0c769c008a7d58f06d Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 8 Sep 2022 12:00:00 +0300 Subject: cmd_remove: drop file existence check --- src/exec-cmd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/exec-cmd.c b/src/exec-cmd.c index 8936315..8d5aa3d 100644 --- a/src/exec-cmd.c +++ b/src/exec-cmd.c @@ -356,12 +356,6 @@ int cmd_remove(int argc, char *argv[]) if(result) return 1; - result = file_exist(path); - if(result == F_NOEXIST) { - print_error("Error: No such file exists\n"); - return 1; - } - /* If path names a directory, remove() shall be equivalent to rmdir(). */ result = remove(path); -- cgit v1.2.3-18-g5258