summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix the type of struct bbf's arc_count member: according to gcc'stjr2004-05-291-1/+1
| | | | | definition of struct bb_function_info in libgcc2.c, it should be an int, not a long.
* Include <net/ethernet.h> to have a prototype for ether_ntoa().stefanf2004-05-281-0/+1
| | | | Approved by: das (mentor)
* Unify the start/size parameters for the RSDP search area. Don't bothernjl2004-05-282-4/+6
| | | | | | trying to exclude the top end of the range since it should hurt to overlap by 4 bytes in the off-chance the RSDP signature appears incorrectly at the very top of our search space.
* Check for >= 255 since sign extension from byte to u_int sometimes makesnjl2004-05-272-43/+40
| | | | | | | | the value for "unknown" 0xffffffff. The underlying kernel drivers should be updated to only return 255 but the ABI is used by too many userland utilities. Also, make this WARNS 6 compatible.
* Fix an off-by-one error in the range check for the maximal -i or -ojoerg2004-05-271-2/+2
| | | | block size.
* Use new eui64(3) functions to print EUI-64s and to allow access to nodesbrooks2004-05-263-21/+87
| | | | | | by EUI-64 and name. Reviewed by: simokawa
* Silence some constness and printf type warnings. Most of thedwmalone2004-05-261-12/+14
| | | | | const fixes are ugly 'cos the types in an iovec aren't quite right for a writev.
* Actually negative size is possible for file system, but not for disk.pjd2004-05-251-2/+1
|
* o Fix typo: s/bslim/bhlim/.maxim2004-05-251-1/+1
| | | | | | PR: docs/67170 Submitted by: Anatoly Zherdev MFC after: 3 days
* Use the correct location of the EBDA for searching for the RSDP.njl2004-05-252-19/+31
| | | | | | The EBDA is the 1 KB area addressed by the 16 bit pointer at 0x40E. Pointed out by: robert.moore AT intel.com
* Add suspend/resume support to the debugger.njl2004-05-251-1/+1
|
* In verbose mode print disk sizes in human readable form as well.pjd2004-05-242-2/+9
| | | | OK'ed by: phk
* Include <timeconv.h> for time conversion functions.stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* Add option '-o' for one-line output in combination with '-d'.le2004-05-242-7/+24
| | | | | PR: bin/62911 (patch slightly adopted) Submitted by: Corris Randall <corris@line6.net>
* Include <stdlib.h> for exit() and abort() prototypes.stefanf2004-05-242-0/+2
| | | | Approved by: das (mentor)
* Include <string.h> for prototypes of various string functions.stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* Diff reduction to NetBSD.le2004-05-241-3/+3
| | | | | | | | | | MFNetBSD 1.21; author: itojun use bounded string op MFNetBSD 1.22; author: grant s/netbsd.org/NetBSD.org/i Obtained from: NetBSD
* Include <rpc/rpc_com.h> for a _rpc_dtablesize() prototype.stefanf2004-05-242-0/+2
| | | | Approved by: das (mentor)
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.stefanf2004-05-242-0/+2
| | | | Approved by: das (mentor)
* Build kgmon for amd64.bde2004-05-231-1/+1
|
* Don't crash if the CROM is all zeros.dfr2004-05-231-0/+4
|
* - Add a reference to eeprom(8).marius2004-05-221-2/+4
| | | | | - Spell Open Firmware as "Open Firmware", the way it's done on OpenFirmware.org.
* Hook eeprom(8) up to the FreeBSD/sparc64 build.marius2004-05-221-0/+2
|
* Add eeprom(8), a utility to display and modify system configurationsmarius2004-05-225-0/+1181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stored in EEPROM or NVRAM. It's inspired by the NetBSD eeprom(8) and the SunOS/Solaris eeprom(1M) utilities. Currently, this eeprom(8) only supports systems equipped with Open Firmware and is only tested on Sun machines but should work on any platform using Open Firmware. A bit more specific, eeprom(8) can be used on these systems to do the same under FreeBSD as can be done using the printenv and setenv commandos in the boot monitor. One thing that only hardly can be done using the boot monitor but easily with eeprom(8) is to write a logo to the "oem-logo" property. eeprom(8) may also be useful to recover the boot monitor password (in the default configuration only as root, of course), i.e. when the boot monitor allows you to boot but you can't alter the configuration because the password is unknown. The man page may also be a useful reference of the various configuration variables. The idea of eeprom(8) is that handlers can be written to add support for any firmware that stores such configuration in EEPROM or NVRAM; sort of e.g. eeprom(1M) on Solaris/x86 is used to turn PAE-support on and off (stored in a file then, not hardware). In FreeBSD, a candidate for this would be a handler for the EFI boot environment for FreeBSD/ia64. eeprom(8) uses some code from NetBSD (eeprom.c and the base for eeprom.8), the handler for the Open Firmware /options node (ofw_options.[c,h]) was written using ofw_util.[c,h] from ofwdump(8). Reviewed by: ru (slightly earlier version of the man page)
* - Change ofwdump(8) to use sysexits(3) exit codes.marius2004-05-224-142/+185
| | | | | | | | | | | | | | | | | | | | | | - Make the code use the new OFIOCMAXVALUE instead of defining the maximum length of property values locally. - Move the application specific parts from ofw_util.c to ofwdump.c in order to make ofw_util.c more library-like. While ofw_dump_properties() could be made non-specific to ofwdump(8) it's currently optimized for use in ofwdump(8) and making it a library-like function would just complicate the code unnecessarily. - Minor clean-up in ofw_util.c, e.g. make its use of getopt(3) the way it's described in style(9), make its usage() static, etc. - Add a comment in ofw_util.c about why it doesn't call usage() when neither the "-a" option nor a node-name where given. - Add ofw_optnode() and ofw_setprop(), helper functions for the OFIOCGETOPTNODE and OFIOCSET ioctls respectively, to ofw_util.[c,h]. - Be consistent with the use of 'const' in ofw_util.[c,h] and add 'const' to the function arguments that are acutally const but weren't declared as such. - Mark WARNS=6 clean. Approved by: tmm
* Some wordsmithing and mdoc(7) cleanup.josef2004-05-211-14/+27
| | | | | | Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us> PR: docs/66823 Reviewed by: simon
* Typos and nits.dannyboy2004-05-201-19/+19
|
* Document security.jail.getfsstatroot_only sysctl.pjd2004-05-201-0/+14
| | | | | Obtained from: rwatson's commit log Approved by: rwatson
* Send RADIUS gigaword data when OctetsIn or OctetsOut go over UINT32_MAX.dds2004-05-191-2/+5
| | | | | | PR: bin/61294 Submitted by: Boris Kovalenko MFC after: 3 weeks
* Pressing 's' in the initial menu should result in selecting the 'Standard'kensmith2004-05-182-2/+2
| | | | | | | | | | | | installation as far as most people are concerned but both 'Standard' and 'Select' begin with S and 'Select' is winning. This makes it so 'Select' is not select-able using a keystroke but that is probably for the best and the text on the screen adequately describes how to move back and forth between 'Select' and 'Exit'. Adapted from work by: josef@ PR: i386/37999 MFC after: 1 week
* Fix my own style(9) bugs:joerg2004-05-171-3/+8
| | | | | | | . forward declare all static functions . add a couple of redundant parens in return statements where they've been missing . remove the space after exit since it's a function
* Wire smbmsg(8) into the build.joerg2004-05-171-0/+1
|
OpenPOWER on IntegriCloud