|
|
6cf099 |
From ce03dffa77053f837ff4d7e0fbb3208118f2d768 Mon Sep 17 00:00:00 2001
|
|
|
6cf099 |
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
6cf099 |
Date: Wed, 22 Jul 2015 16:29:09 +0200
|
|
|
6cf099 |
Subject: [PATCH 25/27] UTIL: Lower debug level in perform_checks()
|
|
|
6cf099 |
|
|
|
6cf099 |
Failures in perform_checks() don't have to be fatal, therefore the debug
|
|
|
6cf099 |
messages shouldn't be either.
|
|
|
6cf099 |
|
|
|
6cf099 |
Reviewed-by: Alexander Bokovoy <abokovoy@redhat.com>
|
|
|
6cf099 |
---
|
|
|
6cf099 |
src/util/check_and_open.c | 8 ++++----
|
|
|
6cf099 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
6cf099 |
|
|
|
6cf099 |
diff --git a/src/util/check_and_open.c b/src/util/check_and_open.c
|
|
|
6cf099 |
index 59b90bf4b96731e385fcf92ed8bc251cb94abfda..b40ae2003e3de22ce9e4ca07cecc68e18a7abab4 100644
|
|
|
6cf099 |
--- a/src/util/check_and_open.c
|
|
|
6cf099 |
+++ b/src/util/check_and_open.c
|
|
|
6cf099 |
@@ -99,12 +99,12 @@ static errno_t perform_checks(struct stat *stat_buf,
|
|
|
6cf099 |
}
|
|
|
6cf099 |
|
|
|
6cf099 |
if ((mode & S_IFMT) != (st_mode & S_IFMT)) {
|
|
|
6cf099 |
- DEBUG(SSSDBG_CRIT_FAILURE, "File is not the right type.\n");
|
|
|
6cf099 |
+ DEBUG(SSSDBG_TRACE_LIBS, "File is not the right type.\n");
|
|
|
6cf099 |
return EINVAL;
|
|
|
6cf099 |
}
|
|
|
6cf099 |
|
|
|
6cf099 |
if ((st_mode & ALLPERMS) != (mode & ALLPERMS)) {
|
|
|
6cf099 |
- DEBUG(SSSDBG_CRIT_FAILURE,
|
|
|
6cf099 |
+ DEBUG(SSSDBG_TRACE_LIBS,
|
|
|
6cf099 |
"File has the wrong (bit masked) mode [%.7o], "
|
|
|
6cf099 |
"expected [%.7o].\n",
|
|
|
6cf099 |
(st_mode & ALLPERMS), (mode & ALLPERMS));
|
|
|
6cf099 |
@@ -112,12 +112,12 @@ static errno_t perform_checks(struct stat *stat_buf,
|
|
|
6cf099 |
}
|
|
|
6cf099 |
|
|
|
6cf099 |
if (uid != (uid_t)(-1) && stat_buf->st_uid != uid) {
|
|
|
6cf099 |
- DEBUG(SSSDBG_CRIT_FAILURE, "File must be owned by uid [%d].\n", uid);
|
|
|
6cf099 |
+ DEBUG(SSSDBG_TRACE_LIBS, "File must be owned by uid [%d].\n", uid);
|
|
|
6cf099 |
return EINVAL;
|
|
|
6cf099 |
}
|
|
|
6cf099 |
|
|
|
6cf099 |
if (gid != (gid_t)(-1) && stat_buf->st_gid != gid) {
|
|
|
6cf099 |
- DEBUG(SSSDBG_CRIT_FAILURE, "File must be owned by gid [%d].\n", gid);
|
|
|
6cf099 |
+ DEBUG(SSSDBG_TRACE_LIBS, "File must be owned by gid [%d].\n", gid);
|
|
|
6cf099 |
return EINVAL;
|
|
|
6cf099 |
}
|
|
|
6cf099 |
|
|
|
6cf099 |
--
|
|
|
6cf099 |
2.4.3
|
|
|
6cf099 |
|