summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-13 15:47:44 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-13 15:47:44 +0000
commitcf868f3296412e37d75f614299fd8f3f74d0ed46 (patch)
treef8417445371046fdfd5bfb689c1db0f83c981cec
parente28124601045b01c238558d9d1281e41d719a12e (diff)
downloadsamba-cf868f3296412e37d75f614299fd8f3f74d0ed46.tar.gz
samba-cf868f3296412e37d75f614299fd8f3f74d0ed46.tar.bz2
samba-cf868f3296412e37d75f614299fd8f3f74d0ed46.zip
argv parsing fixes
(This used to be commit 502751cc62df7395683dc45d15887535baa5656b)
-rw-r--r--source3/utils/locktest2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/locktest2.c b/source3/utils/locktest2.c
index 36b32d6460..0391aa2942 100644
--- a/source3/utils/locktest2.c
+++ b/source3/utils/locktest2.c
@@ -515,7 +515,7 @@ static void usage(void)
{
printf(
"Usage:\n\
- locktest //server1/share1 //server2/share2 [options..]\n\
+ locktest //server1/share1 //server2/share2 /path1 /path2 [options..]\n\
options:\n\
-U user%%pass\n\
-s seed\n\
@@ -544,7 +544,7 @@ static void usage(void)
dbf = stderr;
- if (argv[1][0] == '-' || argc < 5) {
+ if (argc < 5 || argv[1][0] == '-') {
usage();
exit(1);
}