r13388: Report a more helpful error with malformed file options of
authorJames Peach <jpeach@samba.org>
Wed, 8 Feb 2006 05:14:48 +0000 (05:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:52 +0000 (13:51 -0500)
the form //server/share (ie. remote path missing).

source/client/cifsddio.c

index 5d314eb38384cfc39cc0d058fed0689db6e64f26..fee5540a5ae9c37d8215af416c7171671f8c123e 100644 (file)
@@ -301,6 +301,11 @@ static struct dd_iohandle * open_smb_handle(const char * host,
 {
        struct smb_handle * smbh;
 
 {
        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));
 
        DEBUG(4, ("opening SMB stream to //%s/%s for %s\n",
                host, share, path));