---
smbfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/smbfs.c b/smbfs.c
index 9097cf950..353abeae1 100644
--- a/smbfs.c
+++ b/smbfs.c
@@ -34,7 +34,7 @@ extern void smbfs_terminate ();
static struct argp_option options[] =
{
{"server",'s',"SERVER",0, "SMB server"},
- {"resource",'r',"RESOURCE",0, "directory to access"},
+ {"resource",'r',"RESOURCE",0, "share to access"},
{"password",'p',"PWD",0, "password to use (default: empty password)"},
{"username",'u',"USR",0, "user name to use (default: `$USER')"},
{"workgroup",'w',"WKG",0, "workgroup to use (default: `WORKGROUP')"},
@@ -66,6 +66,7 @@ static error_t parse_opt(int key, char *arg, struct
argp_state *state)
case ARGP_KEY_ARG:
break;
case ARGP_KEY_END:
+ asprintf(&opts.share, "smb://%s/%s", opts.server, opts.share);
break;
default:
return ARGP_ERR_UNKNOWN;
--
2.51.0- [PATCH v3 1/6 incubator] smb: Update to new api Damien Zammit
- [PATCH v3 2/6 incubator] Apply appropriate locking fo... Damien Zammit
- [PATCH v3 3/6 incubator] Simplify specifying share, s... Damien Zammit
- [PATCH v3 5/6 incubator] Update README Damien Zammit
- Re: [PATCH v3 5/6 incubator] Update README Samuel Thibault
- [PATCH v3 6/6 inbubator] Remove legacy unneeded samba... Damien Zammit
- [PATCH v3 4/6 incubator] Fall back to unprivileged ma... Damien Zammit
- [PATCH v3 7/6 incubator] Fixup for patch 1/6 Damien Zammit
- Re: [PATCH v3 1/6 incubator] smb: Update to new api Samuel Thibault
- Re: [PATCH v3 1/6 incubator] smb: Update to new api Samuel Thibault
- Re: [PATCH v3 1/6 incubator] smb: Update to new a... Damien Zammit
- Re: [PATCH v3 1/6 incubator] smb: Update to n... Samuel Thibault
- Re: [PATCH v3 1/6 incubator] smb: Update ... Samuel Thibault
