From 56e097e99455d943c909153597d0179c8ce1f8bb Mon Sep 17 00:00:00 2001 From: James Peach Date: Wed, 8 Feb 2006 05:14:48 +0000 Subject: r13388: Report a more helpful error with malformed file options of the form //server/share (ie. remote path missing). (This used to be commit 443677f58d4ba8d6aa2963ca5848d3e717ee2cac) --- source4/client/cifsddio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/client/cifsddio.c b/source4/client/cifsddio.c index 5d314eb383..fee5540a5a 100644 --- a/source4/client/cifsddio.c +++ b/source4/client/cifsddio.c @@ -301,6 +301,11 @@ static struct dd_iohandle * open_smb_handle(const char * host, { struct smb_handle * smbh; + if (path == NULL || *path == '\0') { + fprintf(stderr, "%s: missing path name within share //%s/%s\n", + PROGNAME, host, share); + } + DEBUG(4, ("opening SMB stream to //%s/%s for %s\n", host, share, path)); -- cgit