mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3: smbd: Reformat callers of check_access().
Makes it easier to see when we add the dirfsp parameter. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
3a7fb967e5
commit
cc5b49b80a
@ -816,7 +816,9 @@ NTSTATUS set_ea(connection_struct *conn, files_struct *fsp,
|
||||
if (fsp != NULL) {
|
||||
status = check_access_fsp(fsp, FILE_WRITE_EA);
|
||||
} else {
|
||||
status = check_access(conn, smb_fname, FILE_WRITE_EA);
|
||||
status = check_access(conn,
|
||||
smb_fname,
|
||||
FILE_WRITE_EA);
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
@ -7833,7 +7835,9 @@ static NTSTATUS smb_set_file_basic_info(connection_struct *conn,
|
||||
if (fsp != NULL) {
|
||||
status = check_access_fsp(fsp, FILE_WRITE_ATTRIBUTES);
|
||||
} else {
|
||||
status = check_access(conn, smb_fname, FILE_WRITE_ATTRIBUTES);
|
||||
status = check_access(conn,
|
||||
smb_fname,
|
||||
FILE_WRITE_ATTRIBUTES);
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
@ -7904,7 +7908,9 @@ static NTSTATUS smb_set_info_standard(connection_struct *conn,
|
||||
if (fsp != NULL) {
|
||||
status = check_access_fsp(fsp, FILE_WRITE_ATTRIBUTES);
|
||||
} else {
|
||||
status = check_access(conn, smb_fname, FILE_WRITE_ATTRIBUTES);
|
||||
status = check_access(conn,
|
||||
smb_fname,
|
||||
FILE_WRITE_ATTRIBUTES);
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user