From: Andrew Bartlett Date: Tue, 3 Jul 2012 03:09:33 +0000 (+1000) Subject: s3-vfs: Indicate the symlink destination when failing check_reduced_name X-Git-Tag: ldb-1.1.11~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc8d29cdae68e96a3e8a0d647ee952611e69b49e;p=thirdparty%2Fsamba.git s3-vfs: Indicate the symlink destination when failing check_reduced_name --- diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index d4412a92b65..0a259cc9155 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1226,8 +1226,8 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname) p++; if (strcmp(fname, p)!=0) { DEBUG(2, ("check_reduced_name: Bad access " - "attempt: %s is a symlink\n", - fname)); + "attempt: %s is a symlink to %s\n", + fname, p)); SAFE_FREE(resolved_name); return NT_STATUS_ACCESS_DENIED; }