r23064: Clarify comment and indent
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 May 2007 05:22:18 +0000 (05:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:46 +0000 (14:52 -0500)
source/lib/cmdline/popt_credentials.c
source/ntvfs/cifs/vfs_cifs.c

index 6f1c40c47210040ee990955a848dcf70e74ff293..f9a914326f6a81baccdb43950c75cdd9e565e05b 100644 (file)
@@ -71,19 +71,19 @@ static void popt_common_credentials_callback(poptContext con,
 
        switch(opt->val) {
        case 'U':
-               {
-                       char *lp;
-
-                       cli_credentials_parse_string(cmdline_credentials, arg, CRED_SPECIFIED);
-                       /* This breaks the abstraction, including the const above */
-                       if ((lp=strchr_m(arg,'%'))) {
-                               lp[0]='\0';
-                               lp++;
-                               /* Try to prevent this showing up in ps */
-                               memset(lp,0,strlen(lp));
-                       }
+       {
+               char *lp;
+               
+               cli_credentials_parse_string(cmdline_credentials, arg, CRED_SPECIFIED);
+               /* This breaks the abstraction, including the const above */
+               if ((lp=strchr_m(arg,'%'))) {
+                       lp[0]='\0';
+                       lp++;
+                       /* Try to prevent this showing up in ps */
+                       memset(lp,0,strlen(lp));
                }
-               break;
+       }
+       break;
 
        case OPT_PASSWORD:
                cli_credentials_set_password(cmdline_credentials, arg, CRED_SPECIFIED);
index 185e9a343800fee4aeda3741c385b15272fa5cba..c0311ec94fc3434b5727df70be311507ced57925 100644 (file)
@@ -186,7 +186,7 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
                DEBUG(5, ("CIFS backend: Using delegated credentials\n"));
                credentials = req->session_info->credentials;
        } else {
-               DEBUG(1,("CIFS backend: You must supply server, user and password and or have delegated credentials\n"));
+               DEBUG(1,("CIFS backend: NO delegated credentials found: You must supply server, user and password or the client must supply delegated credentials\n"));
                return NT_STATUS_INVALID_PARAMETER;
        }