1
0
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:
Volker Lendecke 2013-04-15 11:08:15 +02:00 committed by Jeremy Allison
parent 576df87428
commit 862c561ffc

View File

@ -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;
}