1
From 1c4a257caac7cd33c61cf8834e9ef62c7cee9246 Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?=C3=80lex=20Fiestas?= <afiestas@kde.org>
3
Date: Mon, 28 Apr 2014 18:00:11 +0200
4
Subject: [PATCH 1/5] If we fail creating a directory, log it into syslog
8
1 file changed, 1 insertion(+)
10
diff --git a/pam_kwallet.c b/pam_kwallet.c
11
index 392f029..18eb981 100644
14
@@ -482,6 +482,7 @@ int mkpath(char *path, struct passwd *userInfo)
15
if (stat(path, &sb)) {
16
if (errno != ENOENT || (mkdir(path, 0777) &&
18
+ syslog(LOG_ERR, "Couldn't create directory: %s because: %d-%s", path, errno, strerror(errno));
21
if (chown(path, userInfo->pw_uid, userInfo->pw_gid) == -1) {