summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prune-packed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prune-packed.c b/prune-packed.c
index 73f0f3a..1e0fc0c 100644
--- a/prune-packed.c
+++ b/prune-packed.c
@@ -27,7 +27,7 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len)
error("unable to unlink %s", pathname);
}
pathname[len] = 0;
- if (rmdir(pathname))
+ if (!rmdir(pathname))
mkdir(pathname, 0777);
}