Author: sfrench
Date: 2006-03-10 04:05:49 +0000 (Fri, 10 Mar 2006)
New Revision: 14127

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14127

Log:
Remove coverity warning on mount.cifs.c

Modified:
   branches/SAMBA_3_0/source/client/mount.cifs.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/mount.cifs.c
===================================================================
--- branches/SAMBA_3_0/source/client/mount.cifs.c       2006-03-10 03:47:57 UTC 
(rev 14126)
+++ branches/SAMBA_3_0/source/client/mount.cifs.c       2006-03-10 04:05:49 UTC 
(rev 14127)
@@ -756,7 +756,7 @@
 
        if(length < 3) {
                /* BB add code to find DFS root here */
-               printf("\nMounting the DFS root for domain not implemented 
yet");
+               printf("\nMounting the DFS root for domain not implemented 
yet\n");
                return NULL;
        } else {
                if(strncmp(unc_name,"//",2) && strncmp(unc_name,"\\\\",2)) {
@@ -887,7 +887,11 @@
 
        if(argc && argv) {
                thisprogram = argv[0];
+       } else {
+               mount_cifs_usage();
+               exit(1);
        }
+
        if(thisprogram == NULL)
                thisprogram = "mount.cifs";
 
@@ -1113,6 +1117,8 @@
                optlen += strlen(share_name) + 4;
        else {
                printf("No server share name specified\n");
+               printf("\nMounting the DFS root for server not implemented 
yet\n");
+                exit(1);
        }
        if(user_name)
                optlen += strlen(user_name) + 6;

Reply via email to