summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2012-06-27 17:13:00 +0200
committerGuillermo Ramos2012-06-27 17:13:00 +0200
commita136fbdfdbee076e62e54786449324b486ba1be7 (patch)
tree4aa0c5f8fce2819fc8de5664ce99ccaa53e4efc8
parent313dfa393b8444831cb6b7c7932cce3ce090f05c (diff)
downloadmjolnir-a136fbdfdbee076e62e54786449324b486ba1be7.tar.gz
Delete message now only with directories
-rw-r--r--mjolnir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjolnir.c b/mjolnir.c
index 3ea12cb..405201e 100644
--- a/mjolnir.c
+++ b/mjolnir.c
@@ -238,9 +238,9 @@ static int rename_del(char *path)
int retval = 0;
int i;
- printf("[+] Deleting %s...\n", path);
if (is_dir(path)) {
+ printf("[+] Deleting %s...\n", path);
return rmdir(path);
} else {
strncpy(new_path, old_path, pathlen+1); // pathlen+1: copy the '\0' too