Skip to content

Commit

Permalink
UTILS: reduce log level if sss_krb5_touch_config() fails
Browse files Browse the repository at this point in the history
This is a fix of fc5c1a1 -
when `times` argument is 'NULL' return code in case of failing
DAC checks is 'EACCESS', not 'EPERM'

Reviewed-by: Alejandro López <[email protected]>
  • Loading branch information
alexey-tikhonov committed Dec 12, 2024
1 parent 132d208 commit 5094a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/domain_info_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 5094a3d

Please sign in to comment.