Functions to quote and unquote pathnames in C-style.
[gitweb.git] / prune-packed.c
index 73f0f3a46277e9053d97590f8e2200477fe247e3..1e0fc0cd9e9694c0bad54e26367097cc499bf3d2 100644 (file)
@@ -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);
 }