(unsigned int)root_dir_fid,
ea_list, sd, fname));
- SET_STAT_INVALID(sbuf);
-
- if (create_options & FILE_OPEN_BY_FILE_ID) {
- status = NT_STATUS_NOT_SUPPORTED;
- goto fail;
- }
-
/*
* Get the file name.
*/
{
char *converted_fname;
+ SET_STAT_INVALID(sbuf);
+
status = unix_convert(talloc_tos(), conn, fname, False,
&converted_fname, NULL, &sbuf);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
+ if (create_options & FILE_OPEN_BY_FILE_ID) {
+ status = NT_STATUS_NOT_SUPPORTED;
+ goto fail;
+ }
+
if (req == NULL) {
oplock_request |= INTERNAL_OPEN_ONLY;
}