mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
smbd: Fix a typo
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b3a9b88702
commit
49912f2147
@ -2661,7 +2661,7 @@ static NTSTATUS can_rename(connection_struct *conn, files_struct *fsp,
|
||||
if ((dirtype & (FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM)) !=
|
||||
(FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM)) {
|
||||
/* Only bother to read the DOS attribute if we might deny the
|
||||
rename on the grounds of attribute missmatch. */
|
||||
rename on the grounds of attribute mismatch. */
|
||||
uint32_t fmode = dos_mode(conn, fsp->fsp_name);
|
||||
if ((fmode & ~dirtype) & (FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM)) {
|
||||
return NT_STATUS_NO_SUCH_FILE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user