return 0;
}
+ if (fsp_get_pathref_fd(handle->conn->cwd_fsp) == -1) {
+ /*
+ * No tcon around, fail as if we don't have the EAs
+ */
+ return 0;
+ }
+
/*
* openat_pathref_fsp() expects a talloc'ed smb_filename. stat
* can be passed a struct from the stack. Make a talloc'ed
return -1;
}
- if (fsp_get_pathref_fd(handle->conn->cwd_fsp) == -1) {
- /*
- * No tcon around, fail as if we don't have the EAs
- */
- status = NT_STATUS_INVALID_HANDLE;
- } else {
- /* Recursion guard. */
- prd->calling_pathref_fsp = true;
- status = openat_pathref_fsp(handle->conn->cwd_fsp,
- smb_fname_cp);
- /* End recursion guard. */
- prd->calling_pathref_fsp = false;
- }
+ /* Recursion guard. */
+ prd->calling_pathref_fsp = true;
+
+ status = openat_pathref_fsp(handle->conn->cwd_fsp, smb_fname_cp);
+
+ /* End recursion guard. */
+ prd->calling_pathref_fsp = false;
if (!NT_STATUS_IS_OK(status)) {
/*