Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/test-sleepless'
[gitweb.git]
/
wrapper.c
diff --git
a/wrapper.c
b/wrapper.c
index 4017bff6bb3f658ed745da4f9a3a7a79fb38fb08..10a6750795b287beabd50561402ffa8867f3e283 100644
(file)
--- a/
wrapper.c
+++ b/
wrapper.c
@@
-333,3
+333,8
@@
int rmdir_or_warn(const char *file)
{
return warn_if_unremovable("rmdir", file, rmdir(file));
}
+
+int remove_or_warn(unsigned int mode, const char *file)
+{
+ return S_ISGITLINK(mode) ? rmdir_or_warn(file) : unlink_or_warn(file);
+}