[Yum-devel] [PATCH] Keep "/etc/yum/pluginconf.d/versionlock.list" user-readable. BZ 855905
Zdeněk Pavlas
zpavlas at redhat.com
Mon Sep 24 14:19:56 UTC 2012
---
plugins/versionlock/versionlock.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/plugins/versionlock/versionlock.py b/plugins/versionlock/versionlock.py
index 40756b2..69458cd 100644
--- a/plugins/versionlock/versionlock.py
+++ b/plugins/versionlock/versionlock.py
@@ -170,6 +170,7 @@ class VersionLockCommand:
if not count:
os.unlink(tmpfilename)
return 1, ['Error: versionlock delete: no matches']
+ os.chmod(tmpfilename, 0644)
os.rename(tmpfilename, filename)
return 0, ['versionlock deleted: ' + str(count)]
--
1.7.4.4
More information about the Yum-devel
mailing list