summaryrefslogtreecommitdiff
path: root/source3/nmbd
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
commit4fe23997bf77c31d13daf404bf28d3c16bdcfd7a (patch)
treeb42d05bc17cd12c9038a3e47d5ef6c51cc760373 /source3/nmbd
parenteb7f4cb0e24f48bd4a093846ad228f2534a44410 (diff)
downloadsamba-4fe23997bf77c31d13daf404bf28d3c16bdcfd7a.tar.gz
samba-4fe23997bf77c31d13daf404bf28d3c16bdcfd7a.tar.bz2
samba-4fe23997bf77c31d13daf404bf28d3c16bdcfd7a.zip
added -a "append log" option
(This used to be commit 4b7d51ffb8cf23662e0e58a785620a0652da5a7c)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 3f0279908d..c7af54fa13 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/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;