summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd
Commit message (Collapse)AuthorAgeFilesLines
* Various language tweaks.trhodes2002-12-241-17/+17
| | | | | PR: 45604 Submitted by: Chris Pepper <pepper@rockefeller.edu>
* Uniformly refer to a file system as "file system".ru2002-12-122-2/+2
| | | | Approved by: re
* mdoc(7) police: markup fixes.ru2002-11-272-4/+4
| | | | Approved by: re
* Factor out the code that determines whether a message must be skippedthomas2002-11-071-26/+27
| | | | | | | as a consequence of a host or program name specification into a common function, skip_pmessage. Reviewed by: roberto
* Add used #include <limits.h>.wollman2002-10-271-0/+1
|
* Sync usage() with reality and sort it alphabetically.tjr2002-10-181-4/+5
| | | | | | PR: 42620 Submitted by: Jeff Ito MFC after: 1 month
* Add -c option to synopsis. Sort it alphabetically, too.tjr2002-10-181-3/+3
|
* Avoid referencing a removed (and freed) queue entry. This partially revertsdes2002-10-061-2/+4
| | | | | | | | revision 1.101 (which did not introduce the bug but made it harder to fix) PR: misc/40363 Submitted by: David Dunham <dwdunham@isilon.com> MFC after: 2 weeks
* Introduce to the !program specification a capability similar to the onedcs2002-09-232-2/+25
| | | | | | | | | | | | | | | | | | | | | | that already exists for hosts: being able to specify a section that applies to every program *except* the one in question. The normal syntax for program specification is still valid. For the new capability, one uses: !-program Since there is no way to specify a program beginning with a dash in the old syntax, as it would be interpreted as the case above, the following alternative syntax to the original capability is provided: !+program This shouldn't introduce incompatibilities with any syslogd configuration in production because -stable's syslogd does not support a dash anywhere in the program specification. MFC after: 2 weeks
* Make syslogd -u treat "*" as all levels by explictly setting pri_cmpdwmalone2002-09-042-6/+24
| | | | | | | | | | | for it. While I'm here, add a the ability to say "!level" in a way which should be compatible with Linux's syslogd. PR: 28935 No objections: audit MFC after: 2 weeks
* Don't give up on a remote log host when we get a EHOSTUNREACH orcjc2002-08-251-3/+20
| | | | | | | | | | | | | | | | EHOSTDOWN. These are often transient errors (when the remote host reboots, temporary network problems, etc.), and we'd rather err on the side of caution and keep trying send messages that never arrive than just give up. Note that this is not an implementation of the "back-off" methods given in the PR. Those just seem too complicated. Why not just keep trying each time? Trying and failing doesn't really consume significantly more resources than if we were successful for each message. PR: bin/31029 MFC after: 1 week
* When parsing the program name from the incoming log messagerobert2002-07-251-1/+1
| | | | | | from a client, accept all printable characters as being part of the program name, except ':' and '[', because each is a possible delimiter.
* When reading a program name from the syslog configuration file,robert2002-07-251-1/+1
| | | | | | | | | | do not stop copying it into a buffer when encountering a non-alphanumerical character. Only stop at unprintable characters. This makes syslogd work correctly with executables like `interp.bin', `httpd_old', etc. PR: misc/40941 MFC after: 1 week
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.ume2002-07-221-3/+1
| | | | MFC after: 1 week
* The .Nm utilitycharnier2002-07-141-7/+7
|
* Consistancy check: s/file system/filesystem/gtrhodes2002-05-161-1/+1
|
* Remove spaces between (void) and function calls. Use TAILQ_FOREACHdes2002-03-241-30/+40
| | | | | instead of hand-rolled equivalent. Add curly braces for symmetry around else.
* Parenthesize return values and pull an orphaned { back into the fold.des2002-03-241-19/+18
|
* __FBSDID, ANSIfy function definitions, staticize functions and globals,des2002-03-241-148/+108
| | | | | don't initialize globals to 0, some reindentation of declarations, some comments added or reworded.
* Un-__P().des2002-03-241-27/+27
|
* Remove unnecessary setjmp.h.maxim2002-02-131-1/+0
| | | | | | | Reviewed by: ru Approved by: ru Obtained from: OpenBSD MFC after: 1 week
* Unlink all log sockets at startup.maxim2002-02-131-0/+1
| | | | | | | | PR: misc/34839 Reviewed by: ru Approved by: ru Obtained from: OpenBSD MFC after: 2 weeks
* mdoc(7) police: add missing markup bit.ru2002-01-101-1/+1
|
* Initialze a stack variable with NULL to unbreak buildworld with -Wall.deischen2002-01-091-1/+1
| | | | | I don't know about anyone else, but the compiler was always aborting on this stupid warning, and has been doing so for weeks.
* Add a new flag '-c' to disable repeated line compression when the outputarchie2002-01-052-2/+13
| | | | | | is a pipe to another program, or, if specified twice, in all cases. PR: bin/32420
* mdoc(7) police: markup nits.ru2001-12-081-1/+1
|
* Make the default kernel prefix "kernel:" instead of the boot file,dd2001-11-272-4/+25
| | | | | | | | | | | | | with the old behavior available via the -o option (it might still be useful if one has many kernels and cares which messages came from which). If the boot file is not used as the prefix, it is still logged once at startup. This change is prompted by the fact that the boot file is now much longer ("/boot/kernel/kernel" vs. "/kernel"), which significanlty bloats the syslogd output. Reviewed by: peter
* If the mask length is zero, there is no need to convert it to aps2001-11-141-1/+4
| | | | | | | | netmask. PR: 31947 Submitted by: Aaron Scarisbrick <aaronsca@hotmail.com> MFC after: 1 week
* Check the return values from calls to malloc(), calloc(), strdup() etc.des2001-09-301-12/+33
| | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> MFC after: 2 weeks
* Add a strcasecmp() call I forgot in my hurry to commit the previous fix.des2001-09-131-1/+2
| | | | | | | Without this call, the hostname check would in some cases yield false positives. Pointed out by: ru
* The previous commit appeared to just shove the bug under the carpet ratherdes2001-09-131-5/+23
| | | | | | | | | | than really solve it. This approach (inspired by Ruslan's patch) solves the real problem by stripping the local domain off the host name in the config line structure. Also mark a bunch of code sections that either do not check the return value of a strdup(), malloc() or calloc() call, or do not properly handle a NULL return.
* Fix logging from remote hosts, which has been broken since (at least) revisiondes2001-09-131-2/+3
| | | | | | | | 1.64, i.e. July of last year. Also fix a minor style bug in the same code. PR: bin/28634 Pointy hat to: dwmalone Pointed out by: my buggy DSL router's remote logging facility
* Fixed the free(3) panic overlooked due to the -Wno-uninitialized.ru2001-09-111-1/+2
|
* Use CFLAGS instead of COPTS.dd2001-09-091-1/+1
|
* - Silence warnings: apply `const' generously, mark some variablesdd2001-09-092-45/+50
| | | | | | | | | | | | | | | __unused, and change local variables named `sin' (struct sockaddr_in) to `sin4'. (`sin' conflicts with the definition of sin(3), which gcc assumes to be defined even if math.h isn't included (it's a builtin). This is probably a bug in gcc.) - Apply WARNS=1. WARNS=2 was not used because this program assigns string literals to (struct iovec).iov_base for writing, and the only clean way to silence -Wwrite-strings in that case would be to strdup() and consequently free() those literals, which I considered too disruptive. Reviewed by: bde (partially)
* Correct a last minute sizeof() bogon in my previous commit.kris2001-09-051-1/+1
|
* Introduce a -b option that allows the user to specify which address todd2001-09-012-5/+16
| | | | | | | bind to. This is useful for hosts running jails that need syslog to maintain an open socket to log to a remote host. Reviewed by: sheldonh
* Fix some unsafe signal handlers, and be careful not to overflow on fd_set.kris2001-09-011-102/+136
| | | | | | | | Fix some string buffer operations. Based on: OpenBSD Reviewed by: audit MFC after: 2 weeks
* Fix some small errors and markup nits.cjc2001-08-281-9/+8
| | | | | Approved by: ru MFC after: 2 days
* Gives syslogd(8) the ability to refresh its idea of the hostname ofcjc2001-08-271-7/+27
| | | | | | | | | | | the system on which it is running. The hostname is reloaded when 'HUPped' and a log message generated to note a change (before anyone points it out, this is not an added security feature). PR: bin/24444 Reviewed by: freebsd-audit Approved by: ru MFC after: 2 weeks
* Don't make it sound like -A is turning on the default behavior.dd2001-08-271-0/+1
|
* Handle snprintf() returning -1.brian2001-08-201-2/+5
| | | | MFC after: 2 weeks
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-2/+1
|
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-2/+4
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove GCC'isms in CFLAGS.obrien2001-07-201-1/+1
|
* - `-a' option for IPv6 was not working correctly.ume2001-07-191-4/+9
| | | | | | | | - Lose any stray host bits that a user may have entered when providing a network number and netmask to the `-a' option for IPv6. This is corresponding to 1.79 that is for IPv4 only. MFC after: 1 week
* Document the fact that syslogd(8) requires logs files to be createdmike2001-07-181-0/+6
| | | | | | | | before it will start logging to them. PR: 27088 Approved by: des MFC after: 10 days
* Remove whitespace at EOL.dd2001-07-152-8/+8
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
OpenPOWER on IntegriCloud