1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00
Martin Schwenke 5e1e9d74ab debug: Add debug_syslog_format setting
Without debug_hires_timestamp this produces a syslog style header
containing:

  "MON DD HH:MM:SS HOSTNAME PROGNAME[PID] "

With debug_hires_timestamp this produces a syslog style header
containing:

  "RFC5424-TIMESTAMP HOSTNAME PROGNAME[PID] "

All other settings are ignored.

This will be made visible via smb.conf in a subsequent commit.

This commit adds some simple hostname handling.  It avoids using
get_myname() from util.c because using that potentially pulls in all
manner of dependencies.  No real error handling is done.  In the worst
case debug_set_hostname() sets the hostname to a truncated version of
the given string.  Similarly, in an even weirder world,
ensure_hostname() sets the hostname to a truncation of "unknown".
Both of these are unlikely in all reasonable cases.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Ralph Boehme <slow@samba.org>
2021-11-01 06:37:32 +00:00
..
2016-11-16 12:41:09 +01:00
2016-05-04 01:28:23 +02:00
2016-05-04 01:28:23 +02:00
2021-04-27 13:24:35 +00:00
2021-11-01 06:37:32 +00:00
2021-11-01 06:37:32 +00:00
2017-04-18 22:54:15 +02:00
2017-11-20 21:41:14 +01:00
2016-06-07 14:34:10 +02:00
2021-10-08 19:28:31 +00:00
2017-03-20 12:20:08 +01:00
2015-07-07 23:51:23 +02:00
2019-09-17 22:49:36 +00:00
2018-11-30 08:12:31 +01:00
2021-04-19 18:18:31 +00:00
2015-10-13 01:23:07 +02:00
2021-10-08 19:28:32 +00:00
2021-10-08 19:28:32 +00:00
2015-02-13 23:32:07 +01:00
2015-07-07 23:51:23 +02:00
2015-07-07 23:51:23 +02:00
2021-04-19 19:07:01 +00:00
2019-10-02 08:01:40 +00:00
2019-01-28 15:44:18 +01:00
2021-10-28 18:11:28 +00:00
2019-08-07 06:07:28 +00:00
2014-12-07 00:12:07 +01:00
2020-05-15 13:18:38 +00:00
2017-03-28 17:45:19 +02:00
2021-01-25 09:48:09 +00:00
2021-10-08 19:28:31 +00:00
2021-05-11 22:56:37 +00:00
2021-05-11 22:56:37 +00:00
2021-06-30 16:51:29 +00:00

This directory contains libutil (until we can think of a better name)

The idea is that this library contains simple but useful data structures 
and support functions that are generally useful; not just for Samba but for 
other projects as well. Functions here should not depend on any external 
libraries, just on libc (perhaps partially provided by libreplace).