Changeset 2008
- Timestamp:
- 01/07/05 00:24:21 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r2006 r2008 22 22 # 23 23 # $Log$ 24 # Revision 1.148 2005/01/06 23:24:21 jalet 25 # Regain priviledge the time to open the job's data file when printing in 26 # raw mode with CUPS. 27 # 24 28 # Revision 1.147 2005/01/06 22:52:53 jalet 25 29 # Implemented the dropping of priviledges. Beware, beware... … … 690 694 self.printInfo(_("Impossible to regain priviledges : %s") % msg, "warn") 691 695 else : 692 self.logdebug(_("Regained priviledges. "))696 self.logdebug(_("Regained priviledges. Now running as root.")) 693 697 self.privdropped = 0 694 698 … … 1226 1230 else : 1227 1231 # real file, just open it 1232 self.regainPriv() 1228 1233 self.logdebug("Opening data stream %s" % self.preserveinputfile) 1229 1234 self.jobSizeBytes = os.stat(self.preserveinputfile)[6] 1230 return open(self.preserveinputfile, "rb") 1235 infile = open(self.preserveinputfile, "rb") 1236 self.dropPriv() 1237 return infile 1231 1238 1232 1239 def closeJobDataStream(self) :