瀏覽代碼

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

Michael Vogt 19 年之前
父節點
當前提交
54eda6ae96
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)