]> arthur.barton.de Git - bup.git/commit
Ignore lchmod() ENOSYS (i.e. function not implemented) 0.27-rc5
authorRob Browning <rlb@defaultvalue.org>
Thu, 11 Sep 2014 18:52:04 +0000 (13:52 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 11 Apr 2015 18:00:33 +0000 (13:00 -0500)
commit6e2080a451a070bf34bd6b86071f6014ba584d15
tree55d4d8c56f4acb879a50edf1fce1f04dc63a7cd1
parentdfaee0f02a15a4fa51b86d50b4fce7db7c0b3e0a
Ignore lchmod() ENOSYS (i.e. function not implemented)

When restoring symlink permissions, assume that ENOSYS means that it's
not possible to lchmod().

For comparison, it looks like tar doesn't handle lchmod() at all yet.
From the Debian tar 1.27.1 TODO:

  * Add support for restoring the attributes of symbolic links, for
    OSes like FreeBSD that have the lutimes and lchmod functions.

Thanks to Xiao LIU for reporting the problem.

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