{"thread":{"id":"31342","subject":"[PATCH 2/2] Ignore trailing slash in mkdir() on platforms that can't deal with this","startedAt":"2012-08-24T10:32:12Z","lastAt":"2012-08-24T10:32:12Z","messageCount":1,"participants":["Joachim Schmitz"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"197763","messageId":"003201cd81e3$b9c1af50$2d450df0$@schmitz-digital.de","threadId":"31342","inReplyTo":null,"subject":"[PATCH 2/2] Ignore trailing slash in mkdir() on platforms that can't deal with this","fromName":"Joachim Schmitz","fromEmail":"jojo@schmitz-digital.de","sentAt":"2012-08-24T10:32:12Z","receivedAt":"2012-08-24T10:32:12Z","isPatch":true,"sender":{"key":"jojo@schmitz-digital.de","avatar":"https://avatars.githubusercontent.com/u/1786669?v=4"},"body":"\nSigned-off-by: Joachim Schmitz <jojo@schmitz-digital.de>\n---\n git-compat-util.h | 5 +++++\n 1 file changed, 5 insertions(+)\n\ndiff --git a/git-compat-util.h b/git-compat-util.h\nindex 35b095e..34f040f 100644\n--- a/git-compat-util.h\n+++ b/git-compat-util.h\n@@ -162,6 +162,11 @@\n #define probe_utf8_pathname_composition(a,b)\n #endif\n \n+#ifdef MKDIR_WO_TRAILING_SLASH\n+#define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b))\n+extern int compat_mkdir_wo_trailing_slash(const char*, mode_t);\n+#endif\n+\n #ifndef NO_LIBGEN_H\n #include <libgen.h>\n #else\n-- \n1.7.12\n"}]}