Explorar o código

cmdline/apt-mark: fix chmod()/rename() ordering

Michael Vogt %!s(int64=19) %!d(string=hai) anos
pai
achega
54eda6ae96
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      cmdline/apt-mark

+ 1 - 0
cmdline/apt-mark

@@ -60,4 +60,5 @@ if __name__ == "__main__":
             else:
                 outfile.write(str(tagfile.Section)+"\n")
         # all done, rename the tmpfile
+        os.chmod(outfile.name, 0644)
         os.rename(outfile.name, STATE_FILE)