- Timestamp:
- Jun 29, 2007, 10:07:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/File.cc
r405 r424 39 39 #include <map> 40 40 #include <string> 41 #include <sys/stat.h> 41 42 42 43 namespace theplu{ … … 254 255 tmp.close(); 255 256 close(fd); 257 struct stat nodestat; 258 stat(path().c_str(),&nodestat); 259 256 260 // finally move printed temporary file to original file 257 261 rename(tmpname, path().c_str()); 262 chmod(path().c_str(), nodestat.st_mode); 258 263 } 259 264
Note: See TracChangeset
for help on using the changeset viewer.