use provided, not saved mode for superseded opens
This commit is contained in:
parent
6f55d3e346
commit
6ce297022c
1 changed files with 2 additions and 1 deletions
|
|
@ -595,7 +595,8 @@ static int handle_open(nfs41_upcall *upcall)
|
|||
status = ERROR_ACCESS_DENIED;
|
||||
goto out_free_state;
|
||||
}
|
||||
args->mode = info.mode;
|
||||
if (args->disposition != FILE_SUPERSEDE)
|
||||
args->mode = info.mode;
|
||||
}
|
||||
createattrs.attrmask.count = 2;
|
||||
createattrs.attrmask.arr[0] = FATTR4_WORD0_HIDDEN | FATTR4_WORD0_ARCHIVE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue