Quick fix for a small problem. If you run 'nmbd -?' you'd get the usage
authorChristopher R. Hertel <crh@samba.org>
Tue, 11 Aug 1998 21:25:55 +0000 (21:25 +0000)
committerChristopher R. Hertel <crh@samba.org>
Tue, 11 Aug 1998 21:25:55 +0000 (21:25 +0000)
message *but the daemon would start anyway*.  I've added a call to exit()
in the default: case of the option processing loop.

Chris -)-----
(This used to be commit c69727bd29c0bf1cded0db84602e791304691e2e)

source3/nmbd/nmbd.c

index 567f7bbca767aab69b92135d46b3315497708c45..9df30adc8c850327c1b19eb02c40a0414377bc5c 100644 (file)
@@ -646,9 +646,10 @@ int main(int argc,char *argv[])
           exit(0);
           break;
         default:
-          if (!is_a_socket(0))
+          if( !is_a_socket(0) )
           {
             usage(argv[0]);
+            exit(0);
           }
           break;
         }