From 6f6e5b51ccfc2b07528fd571ea11505f22704880 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 5 Jul 2020 19:57:30 -0700 Subject: Some TANDEM ACL support. --- lib/sysacls.c | 11 ++++++++++- lib/sysacls.h | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) 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 /* SVR4.2 ES/MP ACLs */ -- cgit v1.2.1