Bug 9955 - Please implement command line option to log to syslog only
Summary: Please implement command line option to log to syslog only
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-17 16:13 UTC by Marcos Mello
Modified: 2023-11-23 12:38 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.
Comment 6 Björn Jacke 2023-11-23 12:38:18 UTC
the "logging" parameter these days allows to configre how to log much better these days and also allows to do what you ask for.