summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* These are the things that the tinderbox has problems with because itjb2007-11-204-0/+4
| | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again.
* Use an explicit pointer cast since NULL isn't guaranteed to be definedjb2007-11-181-1/+1
| | | | | | as a pointer type. Submitted by: Christoph Mallon - christoph mallon at gmx de
* Use a NULL instead of a zero to avoid a compiler warning about a missing ↵jb2007-11-181-1/+1
| | | | sentinel.
* Reduce the WARNS levels in a couple of places so that we can enablejb2007-11-181-1/+1
| | | | -Werror at higher WARNS levels like we did before gcc4 was imported.
* Fix a compiler warning by using a printf format matching the variablejb2007-11-171-1/+1
| | | | type.
* Use uintptr_t to cast a pointer to an integer to avoid compiler warningsjb2007-11-172-2/+2
| | | | on processors where sizeof(void *) > sizeof(int).
* Use printf formats which match the variable types without casts so wejb2007-11-171-4/+4
| | | | can go back to using -Werror in higher WARNS levels.
* Add change missing from previous commit: Remove temporary file.cperciva2007-11-161-1/+1
|
* Fix "freebsd-update rollback" applied to minor-version upgrades: Oldcperciva2007-11-161-2/+16
| | | | | | | | | | | | | | shared object files which have the same name as currently-installed shared object files should be reinstalled after binaries are rolled back. The order for rolling back updates is therefore 1. Install any old shared object files which can be installed without overwriting a new shared object file. 2. Rollback everything which isn't a shared object or kernel file. 3. Rollback any shared object files which we didn't deal with in (1). 4. Rollback to the old kernel. Bug reported by: Jan Henrik Sylvester MFC after: 3 days
* Include agpreg.h from it's new location.jb2007-11-131-1/+1
|
* Add support for "freebsd-update -r newrelease upgrade" -- binarycperciva2007-11-122-64/+850
| | | | | | | | | | | | | | | | | | | upgrading to new releases. Important parts of this code include * automatically determining which optional components (e.g., src, info, proflibs) are installed. * merging changes in files which are modified locally and have changed between the currently running and new release. * prompting the user to rebuild all 3rd party software before deleting old shared libraries. Yes, this is compatible with "freebsd-update rollback" -- you can test a new -BETA and roll back to the old release if you don't like it. Subject to re@ approval, this will be MFCed before 7.0-BETA3 and 6.3-RC1. MFC after: 2 days
* Fix segfault while running with -a option and deinstalling brokenkrion2007-11-101-1/+1
| | | | | | | | packages with incorrect plists. PR: bin/115327 Submitted by: Michael Zhilin <mizhka@gmail.com> MFC after: 3 days
* install hostapd.conf and related files for folks that don't have sourcesam2007-11-101-0/+5
| | | | MFC after: 1 week
* fix building w/ WITHOUT_WPA_SUPPLICANT_EAPOLsam2007-11-101-8/+19
| | | | MFC after: 1 week
* install sample wpa_supplicant.conf; not everyone has source to referencesam2007-11-101-1/+5
|
* Some code cleanups, including removing of stale getopt argument andkrion2007-11-105-32/+26
| | | | | | | | hardcoded +CONTENTS defines. PR: bin/117855 Submitted by: Beat Gaetzi <beat@chruetertee.ch> MFC after: 14 days
* Add -i option for package installation without fetching andkrion2007-11-104-4/+16
| | | | | | | | installing its dependencies. PR: bin/117065 Submitted by: Vladimir Ermakov <samflanker@gmail.com> MFC after: 14 days
* xorg-printserver still exists in the ports tree but it's marked askensmith2007-11-103-4/+0
| | | | | | | depreciated and scheduled to be removed. Confirmed by: kris MFC after: 3 days
* Teach source installation shell script and sysinstall(8) aboutru2007-11-093-1/+5
| | | | | | the 'scompat' source dist that holds src/compat/. Reported by: Mars G Miro
* Update X11 dists for xorg-7.3 layout.kensmith2007-11-083-12/+4
| | | | X-MFC-after: Insta-MFC may be coming so this can get into 6.3-BETA2.
* Two minor improvements uncovered by work on upgrading between releases:cperciva2007-11-081-2/+14
| | | | | | | | | | | | | * When installing updates, make sure that securelevel <= 0. Otherwise we can't remove the schg flag from files. * When preparing to download updates, check to see if we already have them sitting in the /files/ directory. This saves bandwidth if users run "freebsd-update fetch" more than once without installing updates in between. While I'm here, bump the copyright date. MFC after: 3 days
* devinfo(8) manual page refers to pciconfr(8). Add back reference formarck2007-11-071-1/+2
| | | | | | completeness. MFC After: 2 weeks
* Add missing <stdlib.h> for exit()kevlo2007-11-072-0/+2
|
* Cleanup of userland __P usekevlo2007-11-07102-1132/+1139
|
* Check the correct variables for malloc failures.matteo2007-11-072-2/+2
| | | | Submitted by: Michiel Boland <michiel@boland.org>
* Change wpa_supplicant to down the interface at the start of the init routine.thompsa2007-11-051-3/+12
| | | | | | | | | | | | | | | | | | wpa_supplicant expects that it has exclusive access to the net80211 state so when its starts poking in the WEP/WPA settings and the card is already scanning it can cause net80211 to try and associate incorrectly with a protected AP. This is an inconvenience for firmware based cards such as iwi where it can be sent an auth instruction with incomplete security info and cause a firmware error. Remove the 'ifconfig up' from network.subr since wpa_supplicant will immediately down the interface again. Reported by: Guy Helmer (and others) Reviewed by: sam, brooks, avatar MFC after: 3 days
* Allow search for any UUID entered by user.emax2007-11-041-3/+0
| | | | MFC after: 3 days
* Add __unused to parameters when neededcharnier2007-11-032-9/+11
|
* Introduce pkg_updating(1) which scans for installed ports and showskrion2007-11-025-1/+385
| | | | | | | | | all ports/UPDATING entries that affect one of the installed ports, and are relevant on the given machine. PR: bin/117564 Submitted by: Beat Gaetzi <beat@chruetertee.ch> MFC after: 14 days
* Momoize the results of isinstalledpkg()krion2007-11-021-10/+56
| | | | | | PR: bin/116452 Submitted by: wollmann MFC after: 7 days
* mtree should use getcwd() instead of getwd(). getcwd() is safer,keramida2007-11-021-1/+1
| | | | | | | because it includes checks for the length of the buffer it uses. Reviewed by: phk, cperciva MFC after: 3 days
* Add the -h <bindip> option to rpc.lockd, similar to the one inmatteo2007-11-022-111/+348
| | | | | | | | | | | | | | nfsd(8), in mountd(8), and in rpc.statd(8) -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, rpc.lockd will bind to INADDR_ANY. Note that when specifying IP addresses with -h, rpc.lockd will automatically add 127.0.0.1 and if IPv6 is enabled, ::1 to the list. PR: bin/98500 MFC after: 1 week
* Add the -h <bindip> option to rpc.statd, similar to the one in nfsd(8)matteo2007-11-012-91/+335
| | | | | | | | | | | | | | | | and in mountd(8) -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, rpc.statd will bind to INADDR_ANY. Note that when specifying IP addresses with -h, rpc.statd will automatically add 127.0.0.1 and if IPv6 is enabled, ::1 to the list. (coming for rpc.lockd too) PR: bin/98500 MFC after: 1 week
* Update copyright attribution.jhb2007-10-312-2/+4
| | | | MFC after: 3 days
* Normalize usage output.ru2007-10-311-2/+4
|
* Remove dublicate .Pp, sort SEE ALSO.brueffer2007-10-311-4/+3
|
* Whitespace-only change: trim EOL spaces.keramida2007-10-301-3/+3
|
* mdoc warning fix: delete spurious empty line.keramida2007-10-301-2/+1
| | | | MFC after: 3 days
* mdoc fix: Add missing .El requestkeramida2007-10-301-1/+2
| | | | MFC after: 3 days
* 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
OpenPOWER on IntegriCloud