[apport] hpssd.py crashed with IOError in __init__()

Bug #103871 reported by WillDyson
2
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: hplip

To reproduce, create ~/.hplip.conf with mode 0600 and run /etc/init.d/hplip start.

In /usr/lib/hplip/base/g.py, there is a logic error in the check for file readability before opening the file. Checking for "pathmode & 0022 != 0" only fails if the file is writeable by group or other.

ProblemType: Crash
Architecture: i386
Date: Fri Apr 6 15:56:03 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/lib/hplip/hpssd.py
InterpreterPath: /usr/bin/python2.5
Package: hplip 1.7.3-0ubuntu1
PackageArchitecture: i386
ProcCmdline: python /usr/sbin/hpssd
ProcCwd: /
ProcEnviron:
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/sbin/hpssd']
SourcePackage: hplip
Uname: Linux lappy 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux

Revision history for this message
WillDyson (will-dyson) wrote :
Revision history for this message
dwelch91 (dwelch91) wrote :

Fixed in HPLIP 2.7.5

Changed in hplip:
status: Unconfirmed → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Download full text (19.5 KiB)

hplip (2.7.7-0ubuntu1) gutsy; urgency=low

  * New upstream release
    * Closes: LP: #103871, LP: #109871
    * HPLIP 2.7.7
      + Fixed issues with ppd_install and ppd_dir in the installer
      + Device-id and device-status queries can now be made on more than
        just the 7/1/2 interface.
      + Added pre_install_cmd to installer to fix cups issue in PCLinuxOS
        and Mandriva
      + Added darwin build support to makefile.
      + Removed the localOnly conditional in the sane hpaio backend. This
        was needed for saned usage.
      + Fixed defect (Print Settings for fax device is incorrect after
        switching to other tabs.)
      + Fixed defect (The default unload directory path is invalid if user
        is root.)
      + Fixed defect (Wrong release dates for Fedora distros are displayed
        in terminal.)
      + Added Mandriva 2007.1 to distros.dat
      + Added Ubuntu 7.10 to distros.dat
      + Fixed defect (Entering hp-setup -bnet command in terminal, some
        error information occurs when network is unreachable.)
      + Fixed defect (hp-testpage produces traceback)
      + Added some additional error checking to type 3 status (LaserJets)
      + Re-designed hp-fab database backend (no longer uses KirbyBase,
        instead uses pickle)
      + Converted hp-fab and hp-sendfax to handle non-ascii characters (Unicode)
      + Added a distros.dat flag to handle usermod command with/without -a
      + Added a temporary printer destination codepath for hp-scan
      + Enhanced hp-setup launch code for the text installer
      + Lots of code cleanup in the logging facility
      + Fixed the constraints system in hp-scan (can use list based and
        tuple based constraints)
      + Removed '-a' from usermod command in installer
      + Converted code to use unicode when dealing with UI strings and
        user originated strings
      + Explicitly convert to utf-8 for file logging output
      + Added compile flag conditional compilation in hpmudext.c for parallel
        and network support
      + Fixed the run command in core_install so that exceptions wouldn't
        pass silently
      + Enhanced get_distro() in core_install so that it handles lsb_release
        output better
      + Fixed disable-pp-build and disable-net-build in hpmud.
      + Added localization files to tarball.
      + Various small bug fixes (esp. in the installer)
    * HPIJS 2.7.7
      + Added support for the following new printer(s).
          * HP PhotoSmart A620 Series (PSP470)
          * HP PhotoSmart A820 Series (PSP470)
          * HP PhotoSmart A520 Series (DJGenericVIP)
    * HPLIP 2.7.6
      + Major version number change denotes new functionality.
          * No more Start-up daemons
          * New Direct Device I/O (hpmud)
          * Controllable Permissions
          * Single 'Make' File
          * Support for Dynamic PPD file generation
          * New hp-scan command
      + Replaced hpiod with the new HP Multi-Point Transport Driver (hpmud).
        Hpmud is a shared library instead of a daemon.
      + Hpssd is started automatically when needed by HPLIP.
      + Removed HPIJS makefile. There is now only one...

Changed in hplip:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.