Changeset 2177

Show
Ignore:
Timestamp:
03/22/05 16:27:32 (18 years ago)
Author:
jerome
Message:

Regaining priviledges wasn't done at the correct time so
parsing cupsd.conf was impossible with some security settings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2165 r2177  
    189189             
    190190            # tries to extract job-originating-host-name and other information 
     191            self.regainPriv() 
    191192            cupsdconf = self.getCupsConfigDirectives(["PageLog", "RequestRoot"]) 
    192193            requestroot = cupsdconf.get("requestroot", "/var/spool/cups") 
     
    197198            ippmessagefile = os.path.join(requestroot, ippmessagefile) 
    198199            ippmessage = {} 
    199             self.regainPriv() 
    200200            try : 
    201201                ippdatafile = open(ippmessagefile)