added -a "append log" option
authorAndrew Tridgell <tridge@samba.org>
Fri, 17 Oct 1997 01:46:16 +0000 (01:46 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 17 Oct 1997 01:46:16 +0000 (01:46 +0000)
(This used to be commit 4b7d51ffb8cf23662e0e58a785620a0652da5a7c)

source3/nmbd/nmbd.c

index 3f0279908dafb1ec59c9666121afdf89cbd7e5eb..c7af54fa13b4b5a723f53bb51649d3ddabff599f 100644 (file)
@@ -493,7 +493,7 @@ static void usage(char *pname)
   signal(SIGHUP ,SIGNAL_CAST sig_hup);
   signal(SIGTERM,SIGNAL_CAST sig_term);
 
-  while ((opt = getopt(argc, argv, "s:T:I:C:bAi:B:N:Rn:l:d:Dp:hSH:G:f:")) != EOF)
+  while ((opt = getopt(argc, argv, "as:T:I:C:bAi:B:N:Rn:l:d:Dp:hSH:G:f:")) != EOF)
     {
       switch (opt)
        {
@@ -524,6 +524,12 @@ static void usage(char *pname)
          pstrcpy(scope,optarg);
          strupper(scope);
          break;
+       case 'a':
+               {
+                       extern BOOL append_log;
+                       append_log = !append_log;
+               }
+               break;
        case 'D':
          is_daemon = True;
          break;