svn commit: samba r23064 - in branches/SAMBA_4_0/source: lib/cmdline ntvfs/cifs

abartlet at samba.org abartlet at samba.org
Tue May 22 05:22:21 GMT 2007


Author: abartlet
Date: 2007-05-22 05:22:18 +0000 (Tue, 22 May 2007)
New Revision: 23064

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23064

Log:
Clarify comment and indent

Modified:
   branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c
   branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c
===================================================================
--- branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c	2007-05-22 05:21:59 UTC (rev 23063)
+++ branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c	2007-05-22 05:22:18 UTC (rev 23064)
@@ -71,19 +71,19 @@
 
 	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);

Modified: branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c	2007-05-22 05:21:59 UTC (rev 23063)
+++ branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c	2007-05-22 05:22:18 UTC (rev 23064)
@@ -186,7 +186,7 @@
 		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;
 	}
 



More information about the samba-cvs mailing list