diff options
author | Steve French <sfrench@samba.org> | 2006-03-10 04:05:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:11:13 -0500 |
commit | f3b39786db0563c4ca0680eeae1909f52f402958 (patch) | |
tree | 692dd868c214f3a4f0622b98facc5136d3a47f4e /source3/client | |
parent | 84c398a72ee23c83c472f4ec99b19144d0a1f73e (diff) | |
download | samba-f3b39786db0563c4ca0680eeae1909f52f402958.tar.gz samba-f3b39786db0563c4ca0680eeae1909f52f402958.tar.bz2 samba-f3b39786db0563c4ca0680eeae1909f52f402958.zip |
r14127: Remove coverity warning on mount.cifs.c
(This used to be commit 2ec51635ae7ba448f18c4c1342a5fd2adb1ec869)
Diffstat (limited to 'source3/client')
-rwxr-xr-x | source3/client/mount.cifs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index 103e369f27..23a74d34fa 100755 --- a/source3/client/mount.cifs.c +++ b/source3/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; |