Currently we use the full smb url which includes also username and
password.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14101
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
struct smbc_dirplus_list *dp_list = NULL;
ino_t ino;
char *full_pathname = NULL;
+ char *workgroup = NULL;
+ char *server = NULL;
+ uint16_t port = 0;
+ char *share = NULL;
+ char *path = NULL;
+ char *user = NULL;
+ char *password = NULL;
+ char *options = NULL;
+ int rc;
TALLOC_CTX *frame = NULL;
/*
return NULL;
}
+ rc = SMBC_parse_path(frame,
+ context,
+ full_pathname,
+ &workgroup,
+ &server,
+ &port,
+ &share,
+ &path,
+ &user,
+ &password,
+ &options);
+ if (rc != 0) {
+ TALLOC_FREE(frame);
+ errno = ENOENT;
+ return NULL;
+ }
+
setup_stat(st,
- full_pathname,
+ path,
smb_finfo->size,
smb_finfo->attrs,
ino,
}
setup_stat(st,
- fname,
+ path,
size,
mode,
ino,
}
setup_stat(st,
- file->fname,
+ path,
size,
mode,
ino,