git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] Ignore trailing slash in mkdir() on platforms that can't deal with this
@ 2012-08-24 10:32 Joachim Schmitz
  0 siblings, 0 replies; only message in thread
From: Joachim Schmitz @ 2012-08-24 10:32 UTC (permalink / raw)
  To: Junio C Hamano, git


Signed-off-by: Joachim Schmitz <jojo@schmitz-digital.de>
---
 git-compat-util.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/git-compat-util.h b/git-compat-util.h
index 35b095e..34f040f 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -162,6 +162,11 @@
 #define probe_utf8_pathname_composition(a,b)
 #endif
 
+#ifdef MKDIR_WO_TRAILING_SLASH
+#define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b))
+extern int compat_mkdir_wo_trailing_slash(const char*, mode_t);
+#endif
+
 #ifndef NO_LIBGEN_H
 #include <libgen.h>
 #else
-- 
1.7.12

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-24 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 10:32 [PATCH 2/2] Ignore trailing slash in mkdir() on platforms that can't deal with this Joachim Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).