]> arthur.barton.de Git - bup.git/commit
save-cmd.py: don't test for meta index via access()
authorRob Browning <rlb@defaultvalue.org>
Sat, 28 Jun 2014 18:59:19 +0000 (13:59 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 28 Jun 2014 19:12:46 +0000 (14:12 -0500)
commita866d6734917ab6f5fab5949f9e761dcc4b981d0
treefabd2c3cd746705040424d977ae2cf70e31e48b4
parent54b557ab164498ed42244a68ade33ea53398641c
save-cmd.py: don't test for meta index via access()

Instead just try to open the metadata index and catch any EACCES.
There may be an issue with access on Cygwin
(http://bugs.python.org/issue2528), and even if not, this approach
removes a potential race between access() and open().

Thanks to Mark J Hewitt <mjh@idnet.com> for reporting the problem and
helping track down the cause.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py