use provided, not saved mode for superseded opens

This commit is contained in:
Olga Kornievskaia 2012-04-02 14:42:35 -04:00
parent 6f55d3e346
commit 6ce297022c

View file

@ -595,6 +595,7 @@ static int handle_open(nfs41_upcall *upcall)
status = ERROR_ACCESS_DENIED; status = ERROR_ACCESS_DENIED;
goto out_free_state; goto out_free_state;
} }
if (args->disposition != FILE_SUPERSEDE)
args->mode = info.mode; args->mode = info.mode;
} }
createattrs.attrmask.count = 2; createattrs.attrmask.count = 2;