blob: 11361195925c674423309d40f343c88f58b7bc1e [file] [log] [blame]
Shawn O. Pearceca5bb5d2007-10-20 16:03:49 -04001#include "../git-compat-util.h"
2
3char *gitmkdtemp(char *template)
4{
Filippo Negroni1f80c2a2010-02-25 10:01:31 +00005 if (!*mktemp(template) || mkdir(template, 0700))
Shawn O. Pearceca5bb5d2007-10-20 16:03:49 -04006 return NULL;
7 return template;
8}