From bdfb962bd5c9e1766288bf9dc631ed46cfd5b1c0 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Wed, 11 Dec 2024 16:10:23 +0100 Subject: [PATCH] UTILS: reduce log level if `sss_krb5_touch_config()` fails This is a fix of fc5c1a1af5d868a34a687550af1e31a17576ad25 - when `times` argument is 'NULL' return code in case of failing DAC checks is 'EACCESS', not 'EPERM' --- src/util/domain_info_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c index caf563f86a3..79400e9015d 100644 --- a/src/util/domain_info_utils.c +++ b/src/util/domain_info_utils.c @@ -283,7 +283,7 @@ sss_krb5_touch_config(void) ret = utime(config, NULL); if (ret == -1) { ret = errno; - DEBUG(ret == EPERM ? SSSDBG_MINOR_FAILURE : SSSDBG_CRIT_FAILURE, + DEBUG(ret == EACCES ? SSSDBG_MINOR_FAILURE : SSSDBG_CRIT_FAILURE, "Unable to change mtime of \"%s\" [%d]: %s\n", config, ret, strerror(ret)); }