aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-09-08 12:00:00 +0300
committerJoursoir <chat@joursoir.net>2022-09-08 12:12:37 +0300
commitb935b6e43bcbb7616f4b6e0c769c008a7d58f06d (patch)
tree472aa35105203da3df2f4d72b9b6872861c373af
parent12cf23db2b618be8994cd2786d36f49b5adb6a0a (diff)
downloadlock-password-b935b6e43bcbb7616f4b6e0c769c008a7d58f06d.tar.gz
lock-password-b935b6e43bcbb7616f4b6e0c769c008a7d58f06d.tar.bz2
lock-password-b935b6e43bcbb7616f4b6e0c769c008a7d58f06d.zip
cmd_remove: drop file existence check
-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);