1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Don't crash if the underlying VFS doesn't support ACL's

(This used to be commit a7520177b0)
This commit is contained in:
Jelmer Vernooij 2003-05-01 01:35:56 +00:00
parent d2373e7dce
commit 9bf2a5bde9

View File

@ -232,11 +232,21 @@ static BOOL skel_set_nt_acl(struct files_struct *fsp, const char *name, uint32 s
static BOOL skel_chmod_acl(struct connection_struct *conn, const char *name, mode_t mode)
{
/* If the underlying VFS doesn't have ACL support... */
if (!default_vfs_ops.chmod_acl) {
errno = ENOSYS;
return -1;
}
return default_vfs_ops.chmod_acl(conn, name, mode);
}
static BOOL skel_fchmod_acl(struct files_struct *fsp, int fd, mode_t mode)
{
/* If the underlying VFS doesn't have ACL support... */
if (!default_vfs_ops.fchmod_acl) {
errno = ENOSYS;
return -1;
}
return default_vfs_ops.fchmod_acl(fsp, fd, mode);
}