- Read system config when run as root (bug #242974).
This commit is contained in:
parent
6f59fca737
commit
f4a434afc3
@ -4,7 +4,7 @@
|
||||
|
||||
log.debug("Reading config file %s" % filename)
|
||||
|
||||
+ if filename.startswith ("/root/") or os.getuid () == 0:
|
||||
+ if filename.startswith ("/root/"):
|
||||
+ # Don't try opening a file in root's home directory.
|
||||
+ return
|
||||
+
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: HP Linux Imaging and Printing Project
|
||||
Name: hplip
|
||||
Version: 2.7.6
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: GPL/MIT/BSD
|
||||
Group: System Environment/Daemons
|
||||
Conflicts: system-config-printer < 0.6.132
|
||||
@ -266,6 +266,9 @@ fi
|
||||
exit 0
|
||||
|
||||
%changelog
|
||||
* Mon Jul 9 2007 Tim Waugh <twaugh@redhat.com> 2.7.6-5
|
||||
- Read system config when run as root (bug #242974).
|
||||
|
||||
* Mon Jul 9 2007 Tim Waugh <twaugh@redhat.com> 2.7.6-4
|
||||
- Moved reportlab requirement to gui sub-package (bug #189030).
|
||||
- Patchlevel 1.
|
||||
|
Loading…
Reference in New Issue
Block a user