svn commit: samba r5269 - in branches/SAMBA_3_0/source/utils: .
jerry at samba.org
jerry at samba.org
Mon Feb 7 22:20:04 GMT 2005
Author: jerry
Date: 2005-02-07 22:20:03 +0000 (Mon, 07 Feb 2005)
New Revision: 5269
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5269
Log:
BUG 858: fix order of popt args evalution so we don't crash when given no command line args
Modified:
branches/SAMBA_3_0/source/utils/profiles.c
Changeset:
Modified: branches/SAMBA_3_0/source/utils/profiles.c
===================================================================
--- branches/SAMBA_3_0/source/utils/profiles.c 2005-02-07 22:06:49 UTC (rev 5268)
+++ branches/SAMBA_3_0/source/utils/profiles.c 2005-02-07 22:20:03 UTC (rev 5269)
@@ -577,6 +577,8 @@
}
}
+ poptGetArg(pc); /* To get argv[0] */
+
if (!poptPeekArg(pc)) {
poptPrintUsage(pc, stderr, 0);
exit(1);
@@ -588,8 +590,6 @@
exit(252);
}
- poptGetArg(pc); /* To get argv[0] */
-
fd = open(poptPeekArg(pc), O_RDWR, 0000);
if (fd < 0) {
More information about the samba-cvs
mailing list