X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=prune-packed.c;h=1e0fc0cd9e9694c0bad54e26367097cc499bf3d2;hb=9e48b389990c0201487e58f3bac32734a59a7e89;hp=73f0f3a46277e9053d97590f8e2200477fe247e3;hpb=230f13225df8b7e7eb0acc91a8c630f9e84967c1;p=git.git diff --git a/prune-packed.c b/prune-packed.c index 73f0f3a4..1e0fc0cd 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); }