diff options
author | Guillermo Ramos | 2012-06-27 17:13:00 +0200 |
---|---|---|
committer | Guillermo Ramos | 2012-06-27 17:13:00 +0200 |
commit | a136fbdfdbee076e62e54786449324b486ba1be7 (patch) | |
tree | 4aa0c5f8fce2819fc8de5664ce99ccaa53e4efc8 | |
parent | 313dfa393b8444831cb6b7c7932cce3ce090f05c (diff) | |
download | mjolnir-a136fbdfdbee076e62e54786449324b486ba1be7.tar.gz |
Delete message now only with directories
-rw-r--r-- | mjolnir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |