- always chmod extended_states to 0644
#include <sstream>
#include <set>
#include <sstream>
#include <set>
#include <apti18n.h>
pkgDepCache::ActionGroup::ActionGroup(pkgDepCache &cache) :
#include <apti18n.h>
pkgDepCache::ActionGroup::ActionGroup(pkgDepCache &cache) :
- // move the outfile over the real file
+ // move the outfile over the real file and set permissions
rename(outfile.c_str(), state.c_str());
rename(outfile.c_str(), state.c_str());
+ chmod(state.c_str(), 0644);
outfile.write(str(tagfile.Section)+"\n")
# all done, rename the tmpfile
os.rename(outfile.name, STATE_FILE)
outfile.write(str(tagfile.Section)+"\n")
# all done, rename the tmpfile
os.rename(outfile.name, STATE_FILE)
+ os.chmod(outfile.name, 0644)