summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbsh.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-07-06 03:39:11 +0000
committerAndrew Tridgell <tridge@samba.org>2000-07-06 03:39:11 +0000
commitae80ca637cd4de6d18f995a4b6e1e1e21ab63581 (patch)
treedd2de4e9cc74fb8270c7a718aec2901422f9d029 /source/smbwrapper/smbsh.c
parent614fd4119ce5aa37acd03321dc6ef263ae16bdc5 (diff)
downloadsamba-ae80ca637cd4de6d18f995a4b6e1e1e21ab63581.tar.gz
samba-ae80ca637cd4de6d18f995a4b6e1e1e21ab63581.tar.xz
samba-ae80ca637cd4de6d18f995a4b6e1e1e21ab63581.zip
added -L option
Diffstat (limited to 'source/smbwrapper/smbsh.c')
-rw-r--r--source/smbwrapper/smbsh.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/smbwrapper/smbsh.c b/source/smbwrapper/smbsh.c
index e11244d4fb3..8f3e0b70b44 100644
--- a/source/smbwrapper/smbsh.c
+++ b/source/smbwrapper/smbsh.c
@@ -30,6 +30,7 @@ static void smbsh_usage(void)
printf(" -R resolve order\n");
printf(" -d debug level\n");
printf(" -l logfile\n");
+ printf(" -L libdir\n");
exit(0);
}
@@ -41,11 +42,17 @@ int main(int argc, char *argv[])
int opt;
extern char *optarg;
extern int optind;
+ extern FILE *dbf;
+ dbf = stdout;
+ charset_initialise();
smbw_setup_shared();
- while ((opt = getopt(argc, argv, "W:U:R:d:P:l:h")) != EOF) {
+ while ((opt = getopt(argc, argv, "W:U:R:d:P:l:hL:")) != EOF) {
switch (opt) {
+ case 'L':
+ libd = optarg;
+ break;
case 'W':
smbw_setshared("WORKGROUP", optarg);
break;
@@ -76,7 +83,6 @@ int main(int argc, char *argv[])
}
}
- charset_initialise();
if (!smbw_getshared("USER")) {
printf("Username: ");