]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r18016: OpenBSD apparently does not have ENOTSUP
authorVolker Lendecke <vlendec@samba.org>
Sun, 3 Sep 2006 08:16:25 +0000 (08:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:39:49 +0000 (11:39 -0500)
(This used to be commit 8e087b7e462aaa14e3918cdfe125f8375d4d5fd8)

source3/lib/sysacls.c

index 00264bf0ce03cac14a9c82abe2faaab1187e34d7..d31c1870c34b2c2d5edd1a0addee0b71c3dbec1a 100644 (file)
@@ -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;
 }