summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2006-03-10 04:05:49 +0000
committerSteve French <sfrench@samba.org>2006-03-10 04:05:49 +0000
commitb87dfa14d05c97fc031b8b5ffff2373353cf656d (patch)
tree33fbf7ebfd05b680db14016932f6879b05e3c339 /source/client
parent82ec6f5c157e9a2058a0d2ee7a4ecbb863d2847c (diff)
downloadsamba-b87dfa14d05c97fc031b8b5ffff2373353cf656d.tar.gz
samba-b87dfa14d05c97fc031b8b5ffff2373353cf656d.tar.xz
samba-b87dfa14d05c97fc031b8b5ffff2373353cf656d.zip
r14127: Remove coverity warning on mount.cifs.c
Diffstat (limited to 'source/client')
-rwxr-xr-xsource/client/mount.cifs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index 103e369f27e..23a74d34fad 100755
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -756,7 +756,7 @@ static char * parse_server(char ** punc_name)
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 @@ int main(int argc, char ** argv)
if(argc && argv) {
thisprogram = argv[0];
+ } else {
+ mount_cifs_usage();
+ exit(1);
}
+
if(thisprogram == NULL)
thisprogram = "mount.cifs";
@@ -1113,6 +1117,8 @@ mount_retry:
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;