]> arthur.barton.de Git - bup.git/commit
index.Writer: respect umask/sgid/etc. when creating new index
authorRob Browning <rlb@defaultvalue.org>
Fri, 24 Jun 2022 21:18:33 +0000 (16:18 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 1 Jul 2022 19:17:05 +0000 (14:17 -0500)
commit3137a35f8a734fff4d5b706c3ea94dffa8c0e298
tree6710b4192eb50ebe32e16a4ad409e32614c5d871
parent1c968112d2bfb1d93c7009a42c518de5309dd75c
index.Writer: respect umask/sgid/etc. when creating new index

Use atomically_replaced_file to ensure that the new index respects the
current umask, any directory sgid bit, etc., and use an ExitStack to
try to make sure all the corner cases are covered.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/index.py