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,7 +595,8 @@ static int handle_open(nfs41_upcall *upcall)
status = ERROR_ACCESS_DENIED; status = ERROR_ACCESS_DENIED;
goto out_free_state; goto out_free_state;
} }
args->mode = info.mode; if (args->disposition != FILE_SUPERSEDE)
args->mode = info.mode;
} }
createattrs.attrmask.count = 2; createattrs.attrmask.count = 2;
createattrs.attrmask.arr[0] = FATTR4_WORD0_HIDDEN | FATTR4_WORD0_ARCHIVE; createattrs.attrmask.arr[0] = FATTR4_WORD0_HIDDEN | FATTR4_WORD0_ARCHIVE;