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