Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Implement the rmdir_or_warn function
[gitweb.git]
/
wrapper.c
diff --git
a/wrapper.c
b/wrapper.c
index 0bbff56e2c38651b10551d17caeed84e0cc250c8..4017bff6bb3f658ed745da4f9a3a7a79fb38fb08 100644
(file)
--- a/
wrapper.c
+++ b/
wrapper.c
@@
-328,3
+328,8
@@
int unlink_or_warn(const char *file)
{
return warn_if_unremovable("unlink", file, unlink(file));
}
+
+int rmdir_or_warn(const char *file)
+{
+ return warn_if_unremovable("rmdir", file, rmdir(file));
+}