Prechádzať zdrojové kódy

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

Michael Vogt 19 rokov pred
rodič
commit
54eda6ae96
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      cmdline/apt-mark

+ 1 - 0
cmdline/apt-mark

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