summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-01 12:55:29 +0100
committerVolker Lendecke <vl@samba.org>2008-01-01 13:13:31 +0100
commit31d3f5726a0f4ae23243c82645506cb257d57b53 (patch)
tree9d2ae4d599140af1a9afd93d04be0e8cd28766ad /source3
parent8598bbbcb111103a592f4dcf25199a20b4de258c (diff)
downloadsamba-31d3f5726a0f4ae23243c82645506cb257d57b53.tar.gz
samba-31d3f5726a0f4ae23243c82645506cb257d57b53.tar.bz2
samba-31d3f5726a0f4ae23243c82645506cb257d57b53.zip
Use NULL instead of 0
"struct security_descriptor" has pointers, not integers inside (This used to be commit 13158014e3b05e44eea897fbcf470957301c5c97)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index d3ba9e076c..b6e6adde8a 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2606,16 +2606,16 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
uint32_t sec_info_sent = ALL_SECURITY_INFORMATION;
uint32_t saved_access_mask = fsp->access_mask;
- if (sd->owner_sid==0) {
+ if (sd->owner_sid == NULL) {
sec_info_sent &= ~OWNER_SECURITY_INFORMATION;
}
- if (sd->group_sid==0) {
+ if (sd->group_sid == NULL) {
sec_info_sent &= ~GROUP_SECURITY_INFORMATION;
}
- if (sd->sacl==0) {
+ if (sd->sacl == NULL) {
sec_info_sent &= ~SACL_SECURITY_INFORMATION;
}
- if (sd->dacl==0) {
+ if (sd->dacl == NULL) {
sec_info_sent &= ~DACL_SECURITY_INFORMATION;
}