]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-mark
* cmdline/apt-mark: fix chmod()/rename() ordering
[apt.git] / cmdline / apt-mark
index 533ed87153cbfbfc83619bf059c01de7a29c0b50..dadc0136600c834126c59c194a1ae079ce199d2f 100755 (executable)
@@ -60,4 +60,5 @@ if __name__ == "__main__":
             else:
                 outfile.write(str(tagfile.Section)+"\n")
         # all done, rename the tmpfile
             else:
                 outfile.write(str(tagfile.Section)+"\n")
         # all done, rename the tmpfile
+        os.chmod(outfile.name, 0644)
         os.rename(outfile.name, STATE_FILE)
         os.rename(outfile.name, STATE_FILE)