aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/exec-cmd.c6
1 files changed, 0 insertions, 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);