mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
r3496: Fix calling of get_acl_group_bits().
Guenther
This commit is contained in:
parent
c7eab285d9
commit
3acc74eef5
@ -344,7 +344,9 @@ int file_set_dosmode(connection_struct *conn, const char *fname, uint32 dosmode,
|
||||
return(-1);
|
||||
}
|
||||
|
||||
get_acl_group_bits(conn, fname, &st->st_mode);
|
||||
if (!get_acl_group_bits(conn, fname, &st->st_mode)) {
|
||||
return(-1);
|
||||
}
|
||||
|
||||
if (S_ISDIR(st->st_mode))
|
||||
dosmode |= aDIR;
|
||||
|
@ -3226,7 +3226,7 @@ int get_acl_group_bits( connection_struct *conn, const char *fname, mode_t *mode
|
||||
}
|
||||
}
|
||||
SMB_VFS_SYS_ACL_FREE_ACL(conn, posix_acl);
|
||||
return -1;
|
||||
return result;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user