mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3: VFS: shadow_copy2: Ensure pathnames for parameters are correctly relative and terminated.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12531 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
This commit is contained in:
parent
0a190f4dd9
commit
979e39252b
@ -2626,6 +2626,11 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
|
||||
}
|
||||
}
|
||||
|
||||
trim_string(config->mount_point, NULL, "/");
|
||||
trim_string(config->rel_connectpath, "/", "/");
|
||||
trim_string(config->snapdir, NULL, "/");
|
||||
trim_string(config->snapshot_basepath, NULL, "/");
|
||||
|
||||
DEBUG(10, ("shadow_copy2_connect: configuration:\n"
|
||||
" share root: '%s'\n"
|
||||
" mountpoint: '%s'\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user