Bug 56454 - printconf-backend fails to create printer when the lpd-spool-directory does not exhist
printconf-backend fails to create printer when the lpd-spool-directory does n...
Product: Red Hat Linux
Classification: Retired
Component: printconf (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2001-11-18 20:06 EST by Need Real Name
Modified: 2007-04-18 12:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-01-07 12:17:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-11-18 20:06:49 EST
[root@daddy /root]# printconf-gui 
Traceback (innermost last):
  File "/usr/sbin/printconf-backend", line 381, in ?
    for i in range(flags.getNumChildren()):
  File "/usr/sbin/printconf-backend", line 625, in rebuild_queues
    for dir in map(lambda x: "%s/%s" % (lpd_spool_dir, x), os.listdir
OSError: [Errno 2] No such file or directory

[root@daddy /root]# joe /usr/sbin/printconf-backend

        # This scans the spool directory, and distroys any directory 
marked vol
        # valid configuration.
--------------># PUT (mkdir lpd_spool_dir) LINE HERE!!!!

        for dir in map(lambda x: "%s/%s" % (lpd_spool_dir, x), os.listdir
                if os.path.exists("%s/VOLATILE" % dir):
                                # Yeah, I could do this in python, but it 
                                os.system("rm -rf %s" % dir)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Brand new install no previous printer configuration.
2.Try to add and use a printer using printconf-gui,printconf-backend

Additional info:
Comment 1 Crutcher Dunnavant 2001-11-26 12:26:39 EST
Why isn't /var/spool/lpd there?

Comment 2 Tim Waugh 2002-02-01 09:05:45 EST
I am closing this bug.  /var/spool/lpd is provided by the 'filesystem' package.

Note You need to log in before you can comment on or make changes to this bug.