From c90b0398df86ab954c45daf0fb4cbf75395d2028 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 1 Aug 2013 12:37:14 -0400 Subject: [PATCH] roken: prevent rk_mkdir recursion due to macro rk_mkdir() should not be redefined to mkdir() nor should mkdir() be redefined to rk_mkdir() when compiling lib/roken/mkdir.c Change-Id: I329fd2eb5794548635d33218a65df8958746a6f9 --- lib/roken/mkdir.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/roken/mkdir.c b/lib/roken/mkdir.c index 55cd8f1cf..918ff65c6 100644 --- a/lib/roken/mkdir.c +++ b/lib/roken/mkdir.c @@ -38,7 +38,11 @@ #endif #include "roken.h" -#undef mkdir +#ifdef MKDIR_DOES_NOT_HAVE_MODE + #undef mkdir +#else + #undef rk_mkdir +#endif int ROKEN_LIB_FUNCTION rk_mkdir(const char *pathname, mode_t mode)