client/tools/rhncfg/config_common/file_utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 07efbaa821dbdd131dd0d3a1498afbd763ee37d7
Author: Paresh Mutha <pmutha(a)redhat.com>
Date: Wed Oct 24 15:28:48 2012 +0530
fix for bz#869626 use st_mode, st_uid of dst Signed-off-by: Paresh Mutha
<pmutha(a)redhat.com>
diff --git a/client/tools/rhncfg/config_common/file_utils.py
b/client/tools/rhncfg/config_common/file_utils.py
index f386403..13a42a2 100644
--- a/client/tools/rhncfg/config_common/file_utils.py
+++ b/client/tools/rhncfg/config_common/file_utils.py
@@ -168,8 +168,8 @@ def diff(src, dst, srcname=None, dstname=None):
# don't return the diff if the file is not readable by everyone
# for security reasons.
if (len(ret_list) > 0 # if differences exist
- and src_stat.st_uid == 0 # and file is owned by root
- and not src_stat.st_mode & stat.S_IROTH): #and not readable by all
+ and dst_stat.st_uid == 0 # and file is owned by root
+ and not dst_stat.st_mode & stat.S_IROTH): #and not readable by all
ret_list = [
"Differences exist in a file that is not readable by all. ",
"Re-deployment of configuration file is recommended."]
Show replies by date