Ignore trailing slash in mkdir() on platforms that can't deal with this
PATCH 2/2 Ignore trailing slash in mkdir() on platforms that can't deal with this
Signed-off-by Joachim Schmitz <[email protected]>
--- git-compat-util.h | 5 +++++ 1 file changed, 5 insertions(+)
git-compat-util.h +5 -0
@@ -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
Signature · 1 line
1.7.12