Bug 9955 - Please implement command line option to log to syslog only
Please implement command line option to log to syslog only
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: Other
unspecified
All All
: P5 enhancement
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-17 16:13 UTC by Marcos Mello
Modified: 2015-03-22 21:05 UTC (History)
0 users

See Also:


Attachments
lib/debug.c (2.66 KB, patch)
2015-03-22 20:58 UTC, Marcos Mello
no flags Details
nmbd/nmbd.c (2.00 KB, patch)
2015-03-22 20:59 UTC, Marcos Mello
no flags Details
smbd/server.c (1.99 KB, patch)
2015-03-22 20:59 UTC, Marcos Mello
no flags Details
winbindd/winbindd.c (1.77 KB, patch)
2015-03-22 21:01 UTC, Marcos Mello
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Mello 2013-06-17 16:13:32 UTC
Years ago Piotr Buliński posted patches implementing a "-L" option to prevent Samba to create hardcoded log files in /var/log/samba if compiled with syslog support.

http://lists.samba.org/archive/samba-technical/2009-May/064944.html
http://piotr.bulinski.pl/freebsd-patch/net/samba33/files/

At the time, Volker Lendecke was positive about the patches. Unfortunately they got lost and weren't merged.

Today Piotr found and reposted them on the same link.

So I ask if it's possible to rebase, review and apply these patches. It's a small change, but it gives control back to the user that will be able to suppress the hardcoded log files creation.
Comment 1 Marcos Mello 2015-03-22 20:58:31 UTC
Created attachment 10901 [details]
lib/debug.c
Comment 2 Marcos Mello 2015-03-22 20:59:13 UTC
Created attachment 10902 [details]
nmbd/nmbd.c
Comment 3 Marcos Mello 2015-03-22 20:59:47 UTC
Created attachment 10903 [details]
smbd/server.c
Comment 4 Marcos Mello 2015-03-22 21:01:17 UTC
Created attachment 10904 [details]
winbindd/winbindd.c
Comment 5 Marcos Mello 2015-03-22 21:05:51 UTC
These are the patches Piotr Buliński kindly sent to me.