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