git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] Ignore trailing slash in mkdir() on platforms that can't deal with this

From
Joachim Schmitz <jojo@schmitz-digital.de>
Date
Aug 24, 2012, 10:32 UTC
Message-ID
<003201cd81e3$b9c1af50$2d450df0$@schmitz-digital.de>
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
Message 1 of 1 in “Ignore trailing slash in mkdir() on platforms that can't deal with this”
  1. 2/2 Ignore trailing slash in mkdir() on platforms that can't deal with thisJoachim Schmitz, Aug 24, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.