-l logfile
-P prefix
-d debuglevel
- -U username%password
+ -U username%%password
-R resolve order
note that path must start with /smb/
extern char *optarg;
extern int optind;
char *path;
+ TALLOC_CTX *frame = talloc_stackframe();
- charset_initialise();
+ lp_load_global(get_dyn_CONFIGFILE());
smbw_setup_shared();
while ((opt = getopt(argc, argv, "W:U:R:d:P:l:hL:")) != EOF) {
smbw_setshared("DEBUG", optarg);
break;
case 'U':
- p = strchr(optarg,'%');
+ p = strchr_m(optarg,'%');
if (p) {
*p=0;
smbw_setshared("PASSWORD",p+1);
case 'h':
default:
usage();
+ exit(1);
}
}
printf("%s\n", dent->d_name);
}
smbw_closedir(dir);
+ TALLOC_FREE(frame);
return 0;
}