Cosmetic. Fix bad indentation.
authorJeremy Allison <jra@samba.org>
Fri, 22 Apr 2011 00:25:13 +0000 (17:25 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 22 Apr 2011 01:16:43 +0000 (03:16 +0200)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Apr 22 03:16:43 CEST 2011 on sn-devel-104

source3/smbd/vfs.c

index c3c7b1a66ba65192a195288720c1e00d9d347856..3b482e7f0cdc586be787b116cc7e5dbc9ec37ba4 100644 (file)
@@ -975,26 +975,26 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
 
        /* Check for widelinks allowed. */
        if (!lp_widelinks(SNUM(conn))) {
-                   const char *conn_rootdir;
-
-                   conn_rootdir = SMB_VFS_CONNECTPATH(conn, fname);
-                   if (conn_rootdir == NULL) {
-                           DEBUG(2, ("check_reduced_name: Could not get "
-                                     "conn_rootdir\n"));
-                           SAFE_FREE(resolved_name);
-                           return NT_STATUS_ACCESS_DENIED;
-                   }
+               const char *conn_rootdir;
+
+               conn_rootdir = SMB_VFS_CONNECTPATH(conn, fname);
+               if (conn_rootdir == NULL) {
+                       DEBUG(2, ("check_reduced_name: Could not get "
+                               "conn_rootdir\n"));
+                       SAFE_FREE(resolved_name);
+                       return NT_STATUS_ACCESS_DENIED;
+               }
 
-                   if (strncmp(conn_rootdir, resolved_name,
+               if (strncmp(conn_rootdir, resolved_name,
                                strlen(conn_rootdir)) != 0) {
-                           DEBUG(2, ("check_reduced_name: Bad access "
-                                     "attempt: %s is a symlink outside the "
-                                     "share path\n", fname));
-                           DEBUGADD(2, ("conn_rootdir =%s\n", conn_rootdir));
-                           DEBUGADD(2, ("resolved_name=%s\n", resolved_name));
-                           SAFE_FREE(resolved_name);
-                           return NT_STATUS_ACCESS_DENIED;
-                   }
+                       DEBUG(2, ("check_reduced_name: Bad access "
+                               "attempt: %s is a symlink outside the "
+                               "share path\n", fname));
+                       DEBUGADD(2, ("conn_rootdir =%s\n", conn_rootdir));
+                       DEBUGADD(2, ("resolved_name=%s\n", resolved_name));
+                       SAFE_FREE(resolved_name);
+                       return NT_STATUS_ACCESS_DENIED;
+               }
        }
 
         /* Check if we are allowing users to follow symlinks */