summaryrefslogtreecommitdiff
path: root/source4/client/cifsddio.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-02-08 05:14:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:52 -0500
commit56e097e99455d943c909153597d0179c8ce1f8bb (patch)
tree987f144c33ff49c2a2a7a5abca7a5dae50fd0cc7 /source4/client/cifsddio.c
parentb7f7adb2e1068d1c382f774e54d1b495e6345938 (diff)
downloadsamba-56e097e99455d943c909153597d0179c8ce1f8bb.tar.gz
samba-56e097e99455d943c909153597d0179c8ce1f8bb.tar.bz2
samba-56e097e99455d943c909153597d0179c8ce1f8bb.zip
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)
Diffstat (limited to 'source4/client/cifsddio.c')
-rw-r--r--source4/client/cifsddio.c5
1 files changed, 5 insertions, 0 deletions
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));