From 4fe23997bf77c31d13daf404bf28d3c16bdcfd7a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 Oct 1997 01:46:16 +0000 Subject: added -a "append log" option (This used to be commit 4b7d51ffb8cf23662e0e58a785620a0652da5a7c) --- source3/nmbd/nmbd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/nmbd') 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; -- cgit