daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
572a44
From 510cc2c4bc293002629547e1f5826d7a0ad92101 Mon Sep 17 00:00:00 2001
a4b143
From: Lennart Poettering <lennart@poettering.net>
a4b143
Date: Wed, 2 Oct 2013 19:38:52 +0200
a4b143
Subject: [PATCH] mkdir: pass a proper function pointer to mkdir_safe_internal
a4b143
a4b143
---
a4b143
 src/shared/mkdir.c | 2 +-
a4b143
 1 file changed, 1 insertion(+), 1 deletion(-)
a4b143
a4b143
diff --git a/src/shared/mkdir.c b/src/shared/mkdir.c
a4b143
index b7e5c6e..43c6ea6 100644
a4b143
--- a/src/shared/mkdir.c
a4b143
+++ b/src/shared/mkdir.c
a4b143
@@ -53,7 +53,7 @@ int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkd
a4b143
 }
a4b143
 
a4b143
 int mkdir_safe(const char *path, mode_t mode, uid_t uid, gid_t gid) {
a4b143
-        return mkdir_safe_internal(path, mode, uid, gid, false);
a4b143
+        return mkdir_safe_internal(path, mode, uid, gid, mkdir);
a4b143
 }
a4b143
 
a4b143
 static int is_dir(const char* path) {