diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-03 15:54:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-03 15:54:37 -0700 |
commit | a795b324b75807365085ab87862a2abb072fd34e (patch) | |
tree | a525d004b370f7790606b8a1a8d13b4ab95e741d /git-compat-util.h | |
parent | c1310be00c13ab4b949fcbc0e09c629ba2828eef (diff) | |
parent | 0539ecfdfce677b05992af5e9899a9e974130400 (diff) | |
download | git-a795b324b75807365085ab87862a2abb072fd34e.tar.gz |
Merge branch 'js/compat-mkdir'
Some mkdir(2) implementations do not want to see trailing slash in
its parameter.
* js/compat-mkdir:
compat: some mkdir() do not like a slash at the end
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 35b095e8ae..34f040f595 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 |