Forráskód Böngészése

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

Michael Vogt 19 éve
szülő
commit
31dc104687
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      cmdline/apt-mark

+ 1 - 1
cmdline/apt-mark

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