From 794a253d9ce2ff7528861fde973fd318996c303f Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Mon, 21 Aug 2006 16:41:54 +0000 Subject: [PATCH] - Don't look up username in PWDB in the fax backend (removed redundant code). --- hplip-guest.patch | 12 ++++++++++++ hplip.spec | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 hplip-guest.patch diff --git a/hplip-guest.patch b/hplip-guest.patch new file mode 100644 index 0000000..20d22b9 --- /dev/null +++ b/hplip-guest.patch @@ -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)) diff --git a/hplip.spec b/hplip.spec index 9c2c4b0..2deed68 100644 --- a/hplip.spec +++ b/hplip.spec @@ -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 1.6.7-3 +- Don't look up username in PWDB in the fax backend (removed redundant code). + * Mon Aug 7 2006 Tim Waugh 1.6.7-2 - 1.6.7. - Conflict with selinux-policy < 2.3.4 to make sure new port numbers are