dcavalca / rpms / systemd

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