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());
        }

Reply via email to