mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 15:12:00 +00:00
the API_VERSION there was not in sync (and that was even true, as "st" was missing in acl_get()) - fixed.
21 lines
621 B
Python
21 lines
621 B
Python
import os
|
|
|
|
platform = os.uname()[0]
|
|
|
|
if platform == 'Linux':
|
|
from attic.platform_linux import acl_get, acl_set, API_VERSION
|
|
elif platform == 'FreeBSD':
|
|
from attic.platform_freebsd import acl_get, acl_set, API_VERSION
|
|
elif platform == 'Darwin':
|
|
from attic.platform_darwin import acl_get, acl_set, API_VERSION
|
|
else:
|
|
# this is a dummy acl interface for platforms for which we do not have
|
|
# a real implementation (or which do not support acls at all).
|
|
|
|
API_VERSION = 2
|
|
|
|
def acl_get(path, item, st, numeric_owner=False):
|
|
pass
|
|
|
|
def acl_set(path, item, numeric_owner=False):
|
|
pass
|