summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* | Major re-ordering of the steps that newsyslog will use when processinggad2004-06-071-0/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files to rotate. The new order will first rotate all files that need to be rotated, and then send a single signal to each process which needs to be signaled, and finally it will compress all the files which were rotated. This means daemons will be signaled once per run of newsyslog, instead of once per file rotated. Also, files will be compressed in order of file-size (smallest to largest). Also, it waits for each file to be completely compressed before starting the next one (effectively as if the 'w' flag is specified for all entries in newsyslog.conf). This avoids the situation of having 10 gzip's going at the same time (each with a log.0 and a log.0.gz file active), and it also means that file attributes can be reliably set on files after they are compressed. NOTE: This commit does define NEWORDER (which you could get rid of if you really don't trust this), but it does not flip the "-D neworder" switch. So, at the moment none of these changes happen unless you request them (perhaps by adding '<debug> neworder' in newsyslog.conf). PR: bin/25070 inspired some parts of this Submitted by: parts from bin/25070 done by Helge Oldach MFC after: 14 days
* | A variety of minor changes. Allow users to set a debugging option viagad2004-06-071-67/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the newsyslog.conf file. Rename one size-related variable, and move another one from the stack into conf_entry. Add a routine to change file-attributes (chown, chmod, chflags), instead of having several places doing the same sequence of system-calls. A few cosmetic/style changes. These should not effect any users. Most of these probably look pointless, but they are the "insignificant parts" of a much larger update that I'll be committing soon. Doing these as a separate update should make that update easier to read. MFC after: 14 days
* | Accept full path names in addition to base names for shells.mtm2004-06-062-11/+16
| | | | | | | | | | Make explicit in the documentation that valid shells need to be supplied only if the -S option is not given.
* | Tidy up markup.ru2004-06-061-19/+24
| |
* | Tell crunchide to deal with arm elf binaries as well.cognet2004-06-061-0/+4
| | | | | | | | Rescue can now be built for arm.
* | Markup nits.ru2004-06-051-7/+11
| |
* | Reapply traditionally lost fixes.ru2004-06-051-6/+4
| |
* | Reapply traditionally lost fixes, fixed some more.ru2004-06-051-38/+43
| | | | | | | | This manpage needs an English clenup.
* | Markup and grammar nits.ru2004-06-051-31/+23
| |
* | Removed redundant mdoc(7) macro calls.ru2004-06-051-2/+2
| |
* | Markup and punctuation nits.ru2004-06-052-28/+27
| |
* | Markup nits.ru2004-06-052-11/+13
| |
* | Added forgotten -w to the usage().ru2004-06-041-1/+1
| |
* | Added forgotten -d to the usage().ru2004-06-041-1/+1
| |
* | Added forgotten -w to the SYNOPSIS.ru2004-06-041-4/+4
| | | | | | | | Trim whitespace at EOL.
* | Fixed warnings (missing .Ed call).ru2004-06-041-11/+11
| | | | | | | | | | Fixed grammar (missing punctuation). Fixed screwup with the SEE ALSO section.
* | Reapply some local fixes that got lost with another NetBSD merge,ru2004-06-041-27/+20
| | | | | | | | fix some more.
* | Trim whitespace at EOL.ru2004-06-043-4/+4
| |
* | Nit.ru2004-06-041-1/+1
| |
* | Markup nits.ru2004-06-044-10/+13
| |
* | Spelling nit.ru2004-06-041-1/+1
| |
* | Reapply some lost fixes, fix some more.ru2004-06-041-13/+15
| |
* | Fixed a typo.ru2004-06-041-2/+2
| |
* | Expand contraction.ru2004-06-041-1/+1
| |
* | Markup nit: make the list of options look better.ru2004-06-041-1/+1
| |
* | Style-istic fix to a number of #define's that were not followed by a tab...gad2004-06-031-16/+16
| | | | | | | | MFC after: 16 days
* | Add a 'D' flag that can be specified on entries in newsyslog.conf.gad2004-06-032-1/+41
| | | | | | | | | | | | | | | | If specified, the matching log files will have the NODUMP flag set on them after they are created. Submitted by: Sean Eric Fagan MFC after: 16 days
* | Change standard processing to use the newer createlog() routinegad2004-06-031-56/+33
| | | | | | | | | | | | | | | | that had been written some months ago for other processing. This should get rid of a few subtle situations where an existing log file would not exist (for a short time) while it is being rotated. MFC after: 16 days
* | Give daemon(8) the ability to create a pid-file. Since the target programphk2004-06-022-6/+46
| | | | | | | | | | | | | | | | does not know anything about the pid-file and we don't keep a babysitting process for the task, the pid-file will linger. Submitted by: mi PR: 56398
* | Improved versions of the is*ch() and tolowerch() macros that I like to use.gad2004-06-021-7/+7
| |
* | When rotating some "blah.log" file, make sure that a chmod andgad2004-06-021-13/+14
| | | | | | | | | | | | | | | | (if requested) a chown is done on the "blah.log.0" file. PR: bin/67137 Submitted by: jeh MFC after: 10 days
* | Sentences should not start with conjunctions. Change "Because"csjp2004-06-011-2/+2
| | | | | | | | | | | | to "Since". Pointed out by: Ceri
* | Fixed manpage's synopsis, and synchronized it with the program's usage().ru2004-06-012-6/+6
| |
* | Finish repo move arlconfig -> arlcontrol.fjoe2004-06-015-601/+11
| |
* | Add latinamerican.iso.accache2004-06-012-2/+4
| |
* | lat-amer -> latinamerican keymapache2004-06-012-2/+2
| | | | | | | | PR: 67365
* | Honor NOINET6 and disable IPv6 support in libmilter and sendmail if itgshapiro2004-06-011-1/+5
| | | | | | | | | | | | is set. MFC after: 4 days
* | Add a warning note to security.jail.allow_raw_socketscsjp2004-06-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | about the risks of enabling raw sockets in prisons. Because raw sockets can be used to configure and interact with various network subsystems, extra caution should be used where privileged access to jails is given out to untrusted parties. As such, by default this option is disabled. A few others and I are currently auditing the kernel source code to ensure that the use of raw sockets by privledged prison users is safe. Approved by: bmilekic (mentor)
* | Also terminate program names if we hit a '/' - this is to be slightlydwmalone2004-05-301-1/+2
| | | | | | | | | | | | | | more friendly to postfix log messages. PR: 50912 Submitted by: Stanislav Lapshansky <slapsh@slapsh.pp.ru>
* | A log file name may now be prefixed by a '-' if it should not bedwmalone2004-05-302-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | explicitly fsynced after kernel messages are logged. This option should be syntax compatible with a similar option in Linux syslogd. I've made some small changes to Pekka's patch, hoepfully I haven't goofed anything. PR: 66790 Submitted by: Pekka Savola <pekkas@netcore.fi> Obtained from: Martin Schulze's syslogd MFC after: 1 month
* | Include <string.h> rather than <strings.h> for string function prototypes.stefanf2004-05-303-3/+3
| | | | | | | | Approved by: das (mentor)
* | The file pt_tcplisten.c lacks the $FreeBSD$ keyword. Use the opportunity tostefanf2004-05-308-28/+18
| | | | | | | | | | | | change all files to __FBSDID. Approved by: das (mentor)
* | Try to be more careful about using using the file descriptor f_file.dwmalone2004-05-301-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Syslogd should ensure that f_file is a valid file descriptor when f_type is FILE, CONSOLE, TTY and for a PIPE where f_pid > 0. If the descriptor is closed/invalid then the type should be set to UNUSED or the pid should be set to 0. To this end: 1) Don't close(f->f_file) if we can't send a message to a remote host because the file descriptor used for remote logging is stored in finet, not in f->f_file. f->f_file is probably uninitialised, so I guess we usually end up closing fd 0. 2) Don't close PIPE file descriptors if they are invalid. 3) If the call to p_open fails, don't set the pid. The OpenBSD patches in this area set f_file to -1 after the fd is closed and then avoids calling close if f_file < 0. I haven't done this, but it might be a good idea too. Inspired by: PR 67139/OpenBSD
* | Some string fixes.dwmalone2004-05-291-4/+9
| | | | | | | | | | | | | | | | | | | | | | 1) Use strncpy on strings out of utmp. 2) Avoid running off the start of one string while removing white space. (I've used slightly different code to OpenBSD here.) 3) Ignore trailing spaces in the priority. PR: 67139 Submitted by: Xin LI <delphij@FreeBSD.org.cn> Obtained from: OpenBSD
* | Exit with a warning if the path to one of the logging sockets isdwmalone2004-05-291-0/+4
| | | | | | | | | | | | | | too long, rather than silently truncating them. PR: 67139 Inspired by: OpenBSD
* | Fix some bugs that don't manifest themselves in practice.dwmalone2004-05-291-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | 1) Don't check for getopt returning '?', we have a default case. 2) Check if the priority is LOG_KERN correctly - in practice LOG_KERN is 0, so it makes no difference. OpenBSD fixed a different nearby bug that we don't have 'cos our definition of LOG_MAKEPRI is different to OpenBSD's. Copy a comment from OpenBSD, observing that LOG_KERN is 0. Inspired by PR: 67139
* | Update a couple of comments.dwmalone2004-05-291-2/+2
| | | | | | | | | | | | PR: 67139 Submitted by: Xin LI <[3]delphij@FreeBSD.org.cn> Obtained from: OpenBSD
* | Remove constant which makes the assumption that the length ofcsjp2004-05-291-2/+3
| | | | | | | | | | | | | | | | | | _PATH_DEV will never change. In the un-likely event that _PATH_DEV should ever change, watch(8) would have broke because of a mis-generated device name. Approved by: bmilekic (mentor) Pointed out by: Yvan Boily
* | o Implement -U flag: run command as user which exists only in jail.maxim2004-05-292-19/+40
| | | | | | | | | | | | | | | | | | o getpwnam(3) returns NULL and does not set errno when the user does not exist. Bail out with "no such user" instead of "Unknown error: 0". PR: bin/67262 Submitted by: demon (-U flag) MFC after: 3 weeks
* | Format nits.maxim2004-05-291-2/+2
| |
OpenPOWER on IntegriCloud