mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
Use NULL instead of 0
"struct security_descriptor" has pointers, not integers inside (This used to be commit 13158014e3b05e44eea897fbcf470957301c5c97)
This commit is contained in:
parent
8598bbbcb1
commit
31d3f5726a
@ -2606,16 +2606,16 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
|
|||||||
uint32_t sec_info_sent = ALL_SECURITY_INFORMATION;
|
uint32_t sec_info_sent = ALL_SECURITY_INFORMATION;
|
||||||
uint32_t saved_access_mask = fsp->access_mask;
|
uint32_t saved_access_mask = fsp->access_mask;
|
||||||
|
|
||||||
if (sd->owner_sid==0) {
|
if (sd->owner_sid == NULL) {
|
||||||
sec_info_sent &= ~OWNER_SECURITY_INFORMATION;
|
sec_info_sent &= ~OWNER_SECURITY_INFORMATION;
|
||||||
}
|
}
|
||||||
if (sd->group_sid==0) {
|
if (sd->group_sid == NULL) {
|
||||||
sec_info_sent &= ~GROUP_SECURITY_INFORMATION;
|
sec_info_sent &= ~GROUP_SECURITY_INFORMATION;
|
||||||
}
|
}
|
||||||
if (sd->sacl==0) {
|
if (sd->sacl == NULL) {
|
||||||
sec_info_sent &= ~SACL_SECURITY_INFORMATION;
|
sec_info_sent &= ~SACL_SECURITY_INFORMATION;
|
||||||
}
|
}
|
||||||
if (sd->dacl==0) {
|
if (sd->dacl == NULL) {
|
||||||
sec_info_sent &= ~DACL_SECURITY_INFORMATION;
|
sec_info_sent &= ~DACL_SECURITY_INFORMATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user