diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-25 19:01:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-25 19:01:50 -0700 |
commit | 2c5942dbae01e5c23d2b68aced019702eb256ad9 (patch) | |
tree | 38b103a22d51dc22835a06d375bab806c513acdb /builtin-prune.c | |
parent | 43f8f560c03f6942cad1f12dd8ae5cfa045c8e84 (diff) | |
parent | f6a5f1bb509a3af182fe568135398f1f2be15e5d (diff) | |
download | git-2c5942dbae01e5c23d2b68aced019702eb256ad9.tar.gz |
Merge branch 'ar/unlink-err' into maint
* ar/unlink-err:
print unlink(2) errno in copy_or_link_directory
replace direct calls to unlink(2) with unlink_or_warn
Introduce an unlink(2) wrapper which gives warning if unlink failed
Diffstat (limited to 'builtin-prune.c')
-rw-r--r-- | builtin-prune.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-prune.c b/builtin-prune.c index 545e9c1f94..145ba83651 100644 --- a/builtin-prune.c +++ b/builtin-prune.c @@ -27,7 +27,7 @@ static int prune_tmp_object(const char *path, const char *filename) } printf("Removing stale temporary file %s\n", fullpath); if (!show_only) - unlink(fullpath); + unlink_or_warn(fullpath); return 0; } @@ -47,7 +47,7 @@ static int prune_object(char *path, const char *filename, const unsigned char *s (type > 0) ? typename(type) : "unknown"); } if (!show_only) - unlink(fullpath); + unlink_or_warn(fullpath); return 0; } |