summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-03 08:16:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:49 -0500
commitb540e4dc846b8002e8208183bde4ea0f312d98a8 (patch)
treeb996414e6c9cd19f525940a70f4f5abf68dfd84c /source3/lib
parent98cfbd3ccfb3d2255a65289410e5e358ff3d1a64 (diff)
downloadsamba-b540e4dc846b8002e8208183bde4ea0f312d98a8.tar.gz
samba-b540e4dc846b8002e8208183bde4ea0f312d98a8.tar.bz2
samba-b540e4dc846b8002e8208183bde4ea0f312d98a8.zip
r18016: OpenBSD apparently does not have ENOTSUP
(This used to be commit 8e087b7e462aaa14e3918cdfe125f8375d4d5fd8)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sysacls.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
index 00264bf0ce..d31c1870c3 100644
--- a/source3/lib/sysacls.c
+++ b/source3/lib/sysacls.c
@@ -548,34 +548,54 @@ int sys_acl_delete_def_file(vfs_handle_struct *handle,
SMB_ACL_T sys_acl_get_file(vfs_handle_struct *handle,
const char *path_p, SMB_ACL_TYPE_T type)
{
+#ifdef ENOTSUP
errno = ENOTSUP;
+#else
+ errno = ENOSYS;
+#endif
return NULL;
}
SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, int fd)
{
+#ifdef ENOTSUP
errno = ENOTSUP;
+#else
+ errno = ENOSYS;
+#endif
return NULL;
}
int sys_acl_set_file(vfs_handle_struct *handle,
const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d)
{
+#ifdef ENOTSUP
errno = ENOTSUP;
+#else
+ errno = ENOSYS;
+#endif
return -1;
}
int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
int fd, SMB_ACL_T acl_d)
{
+#ifdef ENOTSUP
errno = ENOTSUP;
+#else
+ errno = ENOSYS;
+#endif
return -1;
}
int sys_acl_delete_def_file(vfs_handle_struct *handle,
const char *path)
{
+#ifdef ENOTSUP
errno = ENOTSUP;
+#else
+ errno = ENOSYS;
+#endif
return -1;
}