s3:mount.cifs: don't error exit on explicitly requested help...
authorMichael Adam <obnox@samba.org>
Tue, 24 Feb 2009 15:57:30 +0000 (16:57 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 24 Feb 2009 15:59:54 +0000 (16:59 +0100)
Michael

source3/client/mount.cifs.c

index a73660958055f72559c2edcb32a8ff44cd0ca95c..641584947ff6b62c9e6ed7b4384945d8e3d85884 100644 (file)
@@ -179,7 +179,6 @@ static void mount_cifs_usage(void)
        printf("\n\t%s -V\n",thisprogram);
 
        SAFE_FREE(mountpassword);
-       exit(EX_USAGE);
 }
 
 /* caller frees username if necessary */
@@ -1102,7 +1101,7 @@ int main(int argc, char ** argv)
                case '?':
                case 'h':        /* help */
                        mount_cifs_usage ();
-                       exit(EX_USAGE);
+                       exit(0);
                case 'n':
                        ++nomtab;
                        break;