summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-17 01:46:16 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-17 01:46:16 +0000
commit4b7d51ffb8cf23662e0e58a785620a0652da5a7c (patch)
treefc12ea7fe4eb2894b04d6f73885d8581f7e494d9 /source
parentce36bfb3e4ad4b72a9f9759a3c49d2a73175d249 (diff)
downloadsamba-4b7d51ffb8cf23662e0e58a785620a0652da5a7c.tar.gz
samba-4b7d51ffb8cf23662e0e58a785620a0652da5a7c.tar.xz
samba-4b7d51ffb8cf23662e0e58a785620a0652da5a7c.zip
added -a "append log" option
Diffstat (limited to 'source')
-rw-r--r--source/nmbd/nmbd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c
index 3f0279908da..c7af54fa13b 100644
--- a/source/nmbd/nmbd.c
+++ b/source/nmbd/nmbd.c
@@ -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;