- Don't look up username in PWDB in the fax backend (removed redundant

code).
This commit is contained in:
Tim Waugh 2006-08-21 16:41:54 +00:00
parent 1fbad0dff2
commit 794a253d9c
2 changed files with 21 additions and 1 deletions

12
hplip-guest.patch Normal file
View File

@ -0,0 +1,12 @@
--- hplip-1.6.7/fax/backend/hpfax.py.guest 2006-08-21 17:35:34.000000000 +0100
+++ hplip-1.6.7/fax/backend/hpfax.py 2006-08-21 17:38:48.000000000 +0100
@@ -188,9 +188,6 @@
except IndexError:
input_fd = 0
- pdb = pwd.getpwnam(username)
- home_folder, uid, gid = pdb[5], pdb[2], pdb[3]
-
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
sock.connect((prop.hpssd_host, prop.hpssd_port))

View File

@ -1,7 +1,7 @@
Summary: HP Linux Imaging and Printing Project
Name: hplip
Version: 1.6.7
Release: 2
Release: 3
License: GPL/MIT/BSD
Group: System Environment/Daemons
Conflicts: system-config-printer < 0.6.132
@ -14,6 +14,7 @@ Conflicts: selinux-policy < 2.3.4-1
Url: http://sourceforge.net/projects/hpinkjet
Source: http://kent.dl.sourceforge.net/sourceforge/hpinkjet/%{name}-%{version}.tar.gz
Patch1: hplip-desktop.patch
Patch2: hplip-guest.patch
Patch3: hplip-quiet.patch
Patch4: hplip-cups-backend.patch
Patch5: hplip-compile.patch
@ -68,6 +69,10 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
# Use /usr/share/applications for putting desktop files in.
%patch1 -p1 -b .desktop
# Don't look up username in PWDB in the fax backend (removed redundant code).
# https://www.redhat.com/archives/fedora-list/2006-August/msg02457.html
%patch2 -p1 -b .guest
# Quieten hpssd on startup.
%patch3 -p1 -b .quiet
@ -180,6 +185,9 @@ fi
exit 0
%changelog
* Mon Aug 21 2006 Tim Waugh <twaugh@redhat.com> 1.6.7-3
- Don't look up username in PWDB in the fax backend (removed redundant code).
* Mon Aug 7 2006 Tim Waugh <twaugh@redhat.com> 1.6.7-2
- 1.6.7.
- Conflict with selinux-policy < 2.3.4 to make sure new port numbers are