s3-vfs: Indicate the symlink destination when failing check_reduced_name
authorAndrew Bartlett <abartlet@samba.org>
Tue, 3 Jul 2012 03:09:33 +0000 (13:09 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Aug 2012 05:47:37 +0000 (15:47 +1000)
source3/smbd/vfs.c

index d4412a92b652249c76b5976279dab5a22da6d1f3..0a259cc9155ac960429e1002382f80f21ecce4b0 100644 (file)
@@ -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;
                        }