mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
parent
16e4503cca
commit
d0f1bca957
@ -30,6 +30,7 @@ static void smbsh_usage(void)
|
|||||||
printf(" -R resolve order\n");
|
printf(" -R resolve order\n");
|
||||||
printf(" -d debug level\n");
|
printf(" -d debug level\n");
|
||||||
printf(" -l logfile\n");
|
printf(" -l logfile\n");
|
||||||
|
printf(" -L libdir\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,11 +42,17 @@ int main(int argc, char *argv[])
|
|||||||
int opt;
|
int opt;
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind;
|
extern int optind;
|
||||||
|
extern FILE *dbf;
|
||||||
|
|
||||||
|
dbf = stdout;
|
||||||
|
charset_initialise();
|
||||||
smbw_setup_shared();
|
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) {
|
switch (opt) {
|
||||||
|
case 'L':
|
||||||
|
libd = optarg;
|
||||||
|
break;
|
||||||
case 'W':
|
case 'W':
|
||||||
smbw_setshared("WORKGROUP", optarg);
|
smbw_setshared("WORKGROUP", optarg);
|
||||||
break;
|
break;
|
||||||
@ -76,7 +83,6 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
charset_initialise();
|
|
||||||
|
|
||||||
if (!smbw_getshared("USER")) {
|
if (!smbw_getshared("USER")) {
|
||||||
printf("Username: ");
|
printf("Username: ");
|
||||||
|
Loading…
Reference in New Issue
Block a user