summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-09 08:17:12 +0000
committerMartin Pool <mbp@samba.org>2002-01-09 08:17:12 +0000
commit5f6feb55d7e7566549141ebb1786b6f2f9f2645b (patch)
treecca2aa39fd38aad0b5456c91dae220b635c8aa6e /source/client
parent391cbb690196537c8b6292b42c2e27408cc7e249 (diff)
downloadsamba-5f6feb55d7e7566549141ebb1786b6f2f9f2645b.tar.gz
samba-5f6feb55d7e7566549141ebb1786b6f2f9f2645b.tar.xz
samba-5f6feb55d7e7566549141ebb1786b6f2f9f2645b.zip
FIXME: At the moment, if the user should happen to give the options
ahead of the service name (in standard Unix fashion) then smbclient just spits out the usage message with no explanation of what in particular was wrong. Is there any reason we can't just parse out the service name and password after running getopt??
Diffstat (limited to 'source/client')
-rw-r--r--source/client/client.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 33ce7e30f74..f5f27474d99 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -2499,7 +2499,13 @@ static int do_message_op(void)
usage(pname);
exit(1);
}
-
+
+ /* FIXME: At the moment, if the user should happen to give the
+ * options ahead of the service name (in standard Unix
+ * fashion) then smbclient just spits out the usage message
+ * with no explanation of what in particular was wrong. Is
+ * there any reason we can't just parse out the service name
+ * and password after running getopt?? -- mbp */
if (*argv[1] != '-') {
pstrcpy(service,argv[1]);
/* Convert any '/' characters in the service name to '\' characters */