summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Selecting amd and a few other things in the Networking config sectionkensmith2007-10-302-5/+14
| | | | | | | | | | | | | | caused a segfault. It turns out that in pre-7.0 systems if you do getenv("amd_enable=YES") it will return the setting of the environment variable "amd_enable" but now it returns NULL. I think I found the places where sysinstall was potentially relying on that old behavior. Fix is to make a copy of the string to be used for the getenv(3) call, look for a '=' character in it, and replace it with '\0' if one is found. Stuck to sysinstall's typical coding standards despite urges to do otherwise. PR: 117642 MFC after: 2 days
* Include <stdlib.h> for the right prototype for exit(3).yar2007-10-271-0/+1
|
* Set the program name if the crunched program is selected throughyar2007-10-271-0/+5
| | | | | | | | | | | | argv[1] to mimic crt0 behaviour. Do the job by a direct assignment to __progname in order to stay compatible with NetBSD, whose setprogname() is a deliberate no-op. The reason for this change is that some programs (usually those imported from NetBSD) use getprogname() to distinguish between their aliases. (See pkill aka pgrep for example.) This change can be useful, and applicable, to NetBSD, too.
* Missed in the previous commit to this file:jhb2007-10-271-0/+3
| | | | | | Actually support the new HT capability type from HT 2.00b. MFC after: 3 days
* Bump up the limit for when to print the resources for a given resourcejhb2007-10-271-1/+1
| | | | | | | manager in hex vs decimal to 1000 from 100 so that IRQs are printed in decimal. MFC after: 3 days
* Use the correct variable to check for a malloc failing. This fixes asimon2007-10-271-1/+1
| | | | | case where mountd would fail to start with "out of memory" logged to syslog.
* Document the '-P pidfile' command line argument.simon2007-10-261-1/+5
| | | | | | PR: docs/116658 Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk> MFC after: 3 days
* If the INDEX file cannot be opened, print the actual filename / pathsimon2007-10-261-7/+8
| | | | | | | | pkg_version tried to open instead of just "INDEX" to make the actual problem more clear (e.g. missing INDEX-8). MFC after: 3 days Reviewed by: portmgr (pav)
* When processing multi-path ip6 routers, place each router entry on itscsjp2007-10-241-0/+2
| | | | | | | | | | own line. We made this change in traceroute(8) some time ago. This is particularly useful when you are not resolving hostnames since ip6 addresses can be quite long, and lines wrap fairly easily in the multi-path router case. Discussed with: bz MFC after: 1 month
* Avoid leaking file descriptorsmatteo2007-10-231-3/+7
|
* Add the -h <bindip> option to mountd, similar to the one in nfsd(8)matteo2007-10-202-160/+340
| | | | | | | | | | | | | -h bindip Specify specific IP addresses to bind to for TCP and UDP requests. This option may be specified multiple times. If no -h option is specified, mountd will bind to INADDR_ANY. Note that when specifying IP addresses with -h, mountd will automatically add 127.0.0.1 and if IPv6 is enabled, ::1 to the list. PR: bin/114097 Reviewed by: pjd (an eariler version of the patch) MFC after: 1 week
* Allow adding a user(s) to additional groups in batch mode as well.mtm2007-10-202-1/+2
| | | | | Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> (modulo minor changes) MFC after: 2 weeks
* The POP daemon's temporary mail file has a leading dot ('.'). This wasmtm2007-10-191-3/+3
| | | | | | lost in the shell script rewrite of the rmuser command. Submitted by: Ian Smith <smithi@nimnet.asn.au>
* Add whitespace.krion2007-10-171-1/+1
|
* Update for INDEX-8 support.krion2007-10-171-1/+3
|
* Some left over from the sensors framework.mlaier2007-10-162-645/+0
|
* Update for tcpdump 3.9.8mlaier2007-10-162-45/+76
|
* Update for libpcap 0.9.8mlaier2007-10-161-6/+7
|
* Backout sensors framework.netchild2007-10-153-297/+0
| | | | | Requested by: phk Discussed on: cvs-all
* Fix makrup. There are still some OpenBSD-specific thingsru2007-10-142-29/+40
| | | | in there that need tweaking.
* style.Makefile(5) says: Do not use GCCisms (such as -g and -Wall)ru2007-10-141-3/+1
| | | | in CFLAGS.
* Sort.ru2007-10-141-1/+1
|
* Import OpenBSD's sysctl hardware sensors framework.netchild2007-10-145-0/+933
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * <sys/sensors.h> * HW_SENSORS definition for <sys/sysctl.h> * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts)
* Adjust HISTORY.obrien2007-10-121-1/+1
|
* Add a signal handler for SIGINT to make sure that the PID filecsjp2007-10-121-0/+1
| | | | | | | | | | gets cleaned up upon receiving SIGINT. This un-breaks subsequent executions of ipfwpcap and helps when debugging network/divert issues like this: ipfwpcap -r 6000 - | tcpdump -r - MFC after: 1 week
* To honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT.kensmith2007-10-111-1/+2
| | | | Approved by: re (implicit)
* Remove file which was accidently repo-copied to the wrong destinationsimon2007-10-101-34/+0
| | | | | | file-name. The file will be nuked entirely from the repository later. Approved by: re (kensmith)
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalobrien2007-10-092-3/+3
| | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith)
* Repo copy libpthreads to libkse.obrien2007-10-092-3/+3
| | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith)
* Make selector parsing accept the dot "." as an alternative selectorse2007-10-041-1/+1
| | | | | | | | | | | with identical meaning as the colon ":". This is to support a syntax that is more similar to a PCI device specification in the device hints file. The selector is not fully compatible with the specification in the hints file, since entries in that file use a different prefix, which needs to be added to the getsel() routine, if full support of that syntax is found to be desirable. Approved by: re (Ken Smith)
* Restore compatibility with version before introduction of PCI domains.se2007-10-042-18/+22
| | | | | | | | | | | | | | | | | PCI selectors with 2 or 3 elements behave exactly as before (i.e. the domain is 0 and in the 2 element case, the function is also 0). The form with 4 selector elements works as in the previous revision and provides the PCI domain number as the left-most selector element. This change allows old scripts (which used the 2 or 3 selector element formats) to be kept. Without this patch, the 3 element form was parsed as starting with a domain number (and the function was assumed to be 0), with this patch, the domain is assumed to be 0 (and the last value is used as the function number). The man page is updated to describe the new selector semantics. Approved by: re (Ken Smith)
* Removing obsolete cached files after cached->nscd renaming.bushman2007-10-0238-10161/+0
| | | | Approved by: re (kensmith), brooks (mentor)
* Remove a -N flag.kevlo2007-10-021-6/+0
| | | | | Reviewed by: sam Approved by: re (kensmith)
* Always install libpthread.* symlinks if at least one ofru2007-10-012-16/+6
| | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* Fixed static linkage (build with -DNO_SHARED).ru2007-10-011-1/+1
| | | | Approved by: re (kensmith)
* Fixed "make checkdpadd" (missing library dependencies).ru2007-10-013-3/+3
| | | | Approved by: re (kensmith)
* Make the PCI code aware of PCI domains (aka PCI segments) so we canmarius2007-09-302-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | support machines having multiple independently numbered PCI domains and don't support reenumeration without ambiguity amongst the devices as seen by the OS and represented by PCI location strings. This includes introducing a function pci_find_dbsf(9) which works like pci_find_bsf(9) but additionally takes a domain number argument and limiting pci_find_bsf(9) to only search devices in domain 0 (the only domain in single-domain systems). Bge(4) and ofw_pcibus(4) are changed to use pci_find_dbsf(9) instead of pci_find_bsf(9) in order to no longer report false positives when searching for siblings and dupe devices in the same domain respectively. Along with this change the sole host-PCI bridge driver converted to actually make use of PCI domain support is uninorth(4), the others continue to use domain 0 only for now and need to be converted as appropriate later on. Note that this means that the format of the location strings as used by pciconf(8) has been changed and that consumers of <sys/pciio.h> potentially need to be recompiled. Suggested by: jhb Reviewed by: grehan, jhb, marcel Approved by: re (kensmith), jhb (PCI maintainer hat)
* fix building with NO_CRYPT=truesam2007-09-281-0/+3
| | | | | PR: 116439 Approved by: re (gnn)
* Finishing renaming of cached into nscd. etc/rc.d and usr.sbin/Makefilebushman2007-09-281-2/+2
| | | | | | updated. Note added to UPDATING. Approved by: re (kensmith, bmah), brooks (mentor)
* o enable use of EAP methods w/o modification to the base system; usesam2007-09-252-6/+145
| | | | | | | | | | WPA_SUPPLICANT_CFLAGS, etc. (consult the Makefile's for details) o enable ipv6 support in hostapd (for communication w/ a radius backend) PR: bin/116164 Submitted by: "Scot Hetzel" <swhetzel@gmail.com> Approved by: re (gnn) MFC after: 2 weeks
* Change the header to indicate which type of id is being displayed,mpp2007-09-191-2/+2
| | | | | | "User" or "Group", instead of identifying them all as "User". Approved by: re (bmah)
* Remove stray comma left over from previous commit.brueffer2007-09-071-1/+1
| | | | Approved by: re (blanket)
* - Remove reference for unexisting ndisapi(9)gabor2007-09-071-2/+1
| | | | | | | | PR: docs/113127 Submitted by: "O. Hartmann"<ohartman@mail.zedat.fu-berlin.de> Reviewed by: keramida Approved by: re (bmah) MFC after: 3 days
* - The weekly periodic runs occur on Saturday mornings, not on Sunday morningsgabor2007-09-071-2/+2
| | | | | | | PR: docs/113975 Submitted by: Marian Cerny <jojo@matfyz.cz> Reviewed by: keramida Approved by: re (bmah)
* Output keymap choice to stderr so it is easier to parse for apps chained tomurray2007-08-271-1/+1
| | | | | | | this curses based app. Submitted by: ivoras Approved by: re@ (bmah@)
* Fix pkg_add behaviour to preserve pathnames.krion2007-08-231-1/+1
| | | | | | | PR: bin/93915 bin/109134 Submitted by: Jason Heiss <heissj@yahoo-inc.com>, Constantin Stefanov<cstef@mail.ru> Approved by: re@ (kensmith) MFC after: 7 days
* Change the time of the first "EoL is coming soon, you should upgrade" warningcperciva2007-08-141-2/+2
| | | | | | | | | | | from EoL minus 6 months to EoL minus 3 months, in order to increase the odds of there actually being a more recent release to which users can upgrade. (In particular, for releases which are only supported for 12 months, it's quite likely that the next release will occur between 6 and 9 months later.) Discussed with: kensmith Approved by: re (bmah) MFC after: 3 days
* Disconnect the soon-to-be removed installation notes from sysinstall(8)bmah2007-08-141-17/+15
| | | | | | menus. Approved by: re (blanket for installation notes removal)
* If the mmap() call in rpc.statd fails, rpc.statd prints a warningtruckman2007-08-131-1/+1
| | | | | | | | | | | | message and then dumps core because the subsequent code assumes that mmap() succeeded. Since rpc.statd does not have fallback code to implement the functionality needed to operate on the status file if it is not memory mapped, rpc.statd should use err() to force the process to exit if the mmap() call fails. PR: bin/115430 (mmap() failure previously fixed in statd.c 1.15) Approved by: re (kensmith) MFC after: 1 week
* - Renaming repocopied cached to nscdbushman2007-08-0922-108/+108
| | | | Approved by: re (kensmith), brooks (mentor)
OpenPOWER on IntegriCloud