summaryrefslogtreecommitdiff
path: root/command/rm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--command/rm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/command/rm.c b/command/rm.c
index 81a956a..9834a40 100644
--- a/command/rm.c
+++ b/command/rm.c
@@ -52,7 +52,7 @@ static bool rm_dir (void) {
d = opendir(get_path_buffer());
if (d == NULL) {
- error_s("failed to stat '%s': %s\n", get_path_buffer(), strerror(errno));
+ error_s("failed to stat '%s'", get_path_buffer());
return false;
}
@@ -71,7 +71,7 @@ static void rm_file(char* path) {
struct stat s;
if (lstat(get_path_buffer(), &s) < 0) {
pop_path_buffer(save);
- error_s("failed to stat '%s': %s\n", get_path_buffer(), strerror(errno));
+ error_s("failed to stat '%s'", get_path_buffer());
return;
}
@@ -102,7 +102,7 @@ static void rm_file(char* path) {
}
if (remove(get_path_buffer()) < 0) {
- error_s("failed to delete '%s': %s\n", get_path_buffer(), strerror(errno));
+ error_s("failed to delete '%s'", get_path_buffer());
} else if (flags.verbose) {
output("deleted '%s'\n", get_path_buffer());
}