svn commit: samba r24255 - in branches/SAMBA_3_0_25/source/utils: .

herb at samba.org herb at samba.org
Mon Aug 6 21:43:35 GMT 2007


Author: herb
Date: 2007-08-06 21:43:34 +0000 (Mon, 06 Aug 2007)
New Revision: 24255

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

Log:
fix crash when username not specified in net rpc info command


Modified:
   branches/SAMBA_3_0_25/source/utils/net.c


Changeset:
Modified: branches/SAMBA_3_0_25/source/utils/net.c
===================================================================
--- branches/SAMBA_3_0_25/source/utils/net.c	2007-08-06 21:03:03 UTC (rev 24254)
+++ branches/SAMBA_3_0_25/source/utils/net.c	2007-08-06 21:43:34 UTC (rev 24255)
@@ -999,6 +999,10 @@
 		opt_user_name = getenv("LOGNAME");
 	}
 
+	if (!opt_user_name) {
+		opt_user_name = "";
+	}
+
 	if (!opt_workgroup) {
 		opt_workgroup = smb_xstrdup(lp_workgroup());
 	}



More information about the samba-cvs mailing list