1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

vfs:shadow_copy2: fix a debug message

The debug message for the mountpoint option was the
wrong way around. This fixes it, also converting
the message to use DBG_WARNING() while we're touching it.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>

Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Jan 13 10:56:42 CET 2016 on sn-devel-144
This commit is contained in:
Michael Adam 2016-01-13 01:37:24 +01:00 committed by Uri Simchoni
parent 25243affa9
commit e8e9e7f2fe

View File

@ -1900,11 +1900,12 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
char *p;
p = strstr(handle->conn->connectpath, mount_point);
if (p != handle->conn->connectpath) {
DEBUG(1, ("Warning: mount_point (%s) is not a "
"subdirectory of the share root "
"(%s). Ignoring provided value.\n",
mount_point,
handle->conn->connectpath));
DBG_WARNING("Warning: the share root (%s) is "
"not a subdirectory of the "
"specified mountpoint (%s). "
"Ignoring provided value.\n",
handle->conn->connectpath,
mount_point);
mount_point = NULL;
}
}