]> arthur.barton.de Git - bup.git/commit - lib/bup/_helpers.c
Replace _helpers.utimensat() with utime() and lutime().
authorRob Browning <rlb@defaultvalue.org>
Wed, 1 Jun 2011 00:49:33 +0000 (19:49 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 9 Jun 2011 03:12:24 +0000 (23:12 -0400)
commita097314a5ac7d80a331139c17a148ad6b79404f9
treed369b02d56aae8f7c315c5a64e872558e044368d
parent6e74568a91d2d7e7912ba490a02f972dccfc99f3
Replace _helpers.utimensat() with utime() and lutime().

Rework utimensat() handling in preparation for the addition of
utimes/lutimes based fallbacks.

Publish lutime() and utime() at the Python level from _helpers.c
rather than utimensat() itself.

Drop the _have_utimensat tests in favor of testing xstat.lutime which
will be false when xstat.lutime() is not available.

Move bup_utimensat() Python argument parsing to
bup_parse_xutime_args() and use it to implement bup_utime_ns() and
bup_lutime_ns().  This argument parsing will eventually be shared by
the utimes/lutimes based fallbacks.

Remove _helpers.AT_FDCWD and _helpers.AT_SYMLINK_NOFOLLOW since
utimensat is no longer published on the Python side.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/xstat-cmd.py
lib/bup/_helpers.c
lib/bup/metadata.py
lib/bup/t/txstat.py
lib/bup/xstat.py