dcavalca / rpms / systemd

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