mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbd: Convert remove_msdfs_link to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
576df87428
commit
862c561ffc
@ -1317,18 +1317,15 @@ bool remove_msdfs_link(const struct junction_map *jucn)
|
||||
char *cwd;
|
||||
connection_struct *conn;
|
||||
bool ret = False;
|
||||
struct smb_filename *smb_fname = NULL;
|
||||
NTSTATUS status;
|
||||
struct smb_filename *smb_fname;
|
||||
|
||||
if (!junction_to_local_path(jucn, &path, &conn, &cwd)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
status = create_synthetic_smb_fname(talloc_tos(), path,
|
||||
NULL, NULL,
|
||||
&smb_fname);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
smb_fname = synthetic_smb_fname(talloc_tos(), path, NULL, NULL);
|
||||
if (smb_fname == NULL) {
|
||||
errno = ENOMEM;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user