TALLOC_CTX *frame = talloc_stackframe();
NTSTATUS status;
- smb_fname = synthetic_smb_fname_split(frame,
- fname,
- lp_posix_pathnames());
+ smb_fname = synthetic_smb_fname_split(
+ frame,
+ canonicalize_absolute_path(talloc_tos(), fname),
+ lp_posix_pathnames());
if (smb_fname == NULL) {
TALLOC_FREE(frame);
return -1;
}
fsp->conn = conn;
- smb_fname = synthetic_smb_fname_split(fsp,
- fname,
- lp_posix_pathnames());
+ smb_fname = synthetic_smb_fname_split(
+ fsp,
+ canonicalize_absolute_path(talloc_tos(), fname),
+ lp_posix_pathnames());
if (smb_fname == NULL) {
return NT_STATUS_NO_MEMORY;
}
NTSTATUS status;
struct smb_filename *smb_fname = NULL;
- smb_fname = synthetic_smb_fname_split(frame,
- fname,
- lp_posix_pathnames());
+ smb_fname = synthetic_smb_fname_split(
+ frame,
+ canonicalize_absolute_path(talloc_tos(), fname),
+ lp_posix_pathnames());
if (smb_fname == NULL) {
TALLOC_FREE(frame);
return NULL;
}
- smb_fname = synthetic_smb_fname_split(frame,
- fname,
- lp_posix_pathnames());
+ smb_fname = synthetic_smb_fname_split(
+ frame,
+ canonicalize_absolute_path(talloc_tos(), fname),
+ lp_posix_pathnames());
if (smb_fname == NULL) {
TALLOC_FREE(frame);
return PyErr_NoMemory();
return NULL;
}
- smb_fname = synthetic_smb_fname_split(frame,
- fname,
- lp_posix_pathnames());
+ smb_fname = synthetic_smb_fname_split(
+ frame,
+ canonicalize_absolute_path(talloc_tos(), fname),
+ lp_posix_pathnames());
if (smb_fname == NULL) {
TALLOC_FREE(frame);
return NULL;
return NULL;
}
- smb_fname = synthetic_smb_fname(talloc_tos(),
- fname,
- NULL,
- NULL,
- 0,
- lp_posix_pathnames() ?
- SMB_FILENAME_POSIX_PATH : 0);
+ smb_fname = synthetic_smb_fname(
+ talloc_tos(),
+ canonicalize_absolute_path(talloc_tos(), fname),
+ NULL,
+ NULL,
+ 0,
+ lp_posix_pathnames() ? SMB_FILENAME_POSIX_PATH : 0);
if (smb_fname == NULL) {
TALLOC_FREE(frame);