diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-07-05 19:57:30 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-07-05 20:09:16 -0700 |
commit | 6f6e5b51ccfc2b07528fd571ea11505f22704880 (patch) | |
tree | bf38acc411993b367ed9eabfc821f4b4fa353cd1 | |
parent | 28de25a6640189ca327d380e6456cab03223cb05 (diff) | |
download | rsync-6f6e5b51ccfc2b07528fd571ea11505f22704880.tar.gz |
Some TANDEM ACL support.
-rw-r--r-- | lib/sysacls.c | 11 | ||||
-rw-r--r-- | lib/sysacls.h | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/sysacls.c b/lib/sysacls.c index ad8b6d80..194efe24 100644 --- a/lib/sysacls.c +++ b/lib/sysacls.c @@ -797,9 +797,17 @@ int sys_acl_free_acl(SMB_ACL_T acl_d) /* so it is important to check this and avoid acl() */ /* calls if it isn't there. */ -static BOOL hpux_acl_call_presence(void) +#ifdef __TANDEM +inline do_acl(const char *path_p, int cmd, int nentries, struct acl *aclbufp) { + return acl((char*)path_p, cmd, nentries, aclbufp); +} +#define acl(p,c,n,a) do_acl(p,c,n,a) +#endif +static BOOL hpux_acl_call_presence(void) +{ +#ifndef __TANDEM shl_t handle = NULL; void *value; int ret_val=0; @@ -820,6 +828,7 @@ static BOOL hpux_acl_call_presence(void) DEBUG(10, ("hpux_acl_call_presence: acl() system call is present. We have JFS 3.3 or above \n")); already_checked = True; +#endif return True; } diff --git a/lib/sysacls.h b/lib/sysacls.h index 040fcdab..9c08255e 100644 --- a/lib/sysacls.h +++ b/lib/sysacls.h @@ -139,7 +139,9 @@ typedef struct acl *SMB_ACL_ENTRY_T; /* Based on the Solaris & UnixWare code. */ +#ifndef __TANDEM #undef GROUP +#endif #include <sys/aclv.h> /* SVR4.2 ES/MP ACLs */ |