From a136fbdfdbee076e62e54786449324b486ba1be7 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Wed, 27 Jun 2012 17:13:00 +0200 Subject: Delete message now only with directories --- mjolnir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3