X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fast-import.c;h=a2a24588a99957d5af759ca6d8858366430ab3a3;hb=d1f6c18bd6ea5fd373f9f6356e02854678ffa0fd;hp=e9d23ffb2fb3f6df141944dca7ddab0edbd1e5ee;hpb=4b25d091ba53c758fae0096b8c0662371857b9d9;p=git.git diff --git a/fast-import.c b/fast-import.c index e9d23ffb2..a2a24588a 100644 --- a/fast-import.c +++ b/fast-import.c @@ -931,7 +931,7 @@ static void unkeep_all_packs(void) struct packed_git *p = all_packs[k]; snprintf(name, sizeof(name), "%s/pack/pack-%s.keep", get_object_directory(), sha1_to_hex(p->sha1)); - unlink(name); + unlink_or_warn(name); } } @@ -981,7 +981,7 @@ static void end_packfile(void) } else { close(old_p->pack_fd); - unlink(old_p->pack_name); + unlink_or_warn(old_p->pack_name); } free(old_p);