summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant assignments to WARNS.ed2011-06-063-4/+0
| | | | For these directories, WARNS is already implied to be 6.
* Set WARNS=1 temporarily to unbreak universe.hrs2011-06-061-1/+1
|
* Allow custom files to be opened and allow sorting by timestamp.ed2011-06-062-18/+60
| | | | | | | | While implementing a tool to import lastlog entries into utmpx, I noticed lastlogin doesn't allow custom database files to be opened. Add a -f switch to support this. Also, add -r and -t similar to ls(1), ruptime(1), etc. where you can sort entries by timestamp and reverse them. This allows you to spot active/idle users more easily.
* Include param.h for CACHE_LINE_SIZE to unbreak the build.bz2011-06-061-1/+2
|
* Remove TODO which is not longer needed and the default.bz2011-06-061-1/+0
|
* Fix build on 64-bit arch.hrs2011-06-063-5/+5
| | | | | Submitted by: dim Pointy hat to: hrs
* - Implement RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisementhrs2011-06-0627-1714/+2844
| | | | | | | | | | | | | | | | | | | | | Options for DNS Configuration) into rtadvd(8) and rtsold(8). DNS information received by rtsold(8) will go to resolv.conf(5) by resolvconf(8) script. This is based on work by J.R. Oldroyd (kern/156259) but revised extensively[1]. - rtadvd(8) now supports "noifprefix" to disable gathering on-link prefixes from interfaces when no "addr" is specified[2]. An entry in rtadvd.conf with "noifprefix" + no "addr" generates an RA message with no prefix information option. - rtadvd(8) now supports RTM_IFANNOUNCE message to fix crashes when an interface is added or removed. - Correct bogus ND_OPT_ROUTE_INFO value to one in RFC 4191. Reviewed by: bz[1] PR: kern/156259 [1] PR: bin/152458 [2]
* Fix resolv.conf search list creation:bz2011-06-041-3/+7
| | | | | | | | 1) do not print out an empty "search ", things do not like it. 2) the search list is not comma separated. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* Fix the nfs related daemons so that they don't intermittentlyrmacklem2011-06-021-28/+212
| | | | | | | | | | | | | | | | | | | | | | | | fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks
* Fix the nfs related daemons so that they don't intermittentlyrmacklem2011-06-021-28/+221
| | | | | | | | | | | | | | | | | | | | | | | | fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks
* Fix the nfs related daemons so that they don't intermittentlyrmacklem2011-06-021-30/+213
| | | | | | | | | | | | | | | | | | | | | | | | fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks
* Write the multi step netconfig to a temporary file and only move thatbz2011-06-023-9/+10
| | | | | | | | | | to the final name if netconfig was completely finished. This fixes reentrance problems even better than r222611. Suggested by: nwhitehorn Reviewed by: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* Empty the network configuration only after the user decided to pick anbz2011-06-021-2/+2
| | | | | | | | | | interface. Otherwise an accidental start of the netowrk configuration and immediate cancel after the install has finished removes the previously configured settings. Discussed with: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* Fix opening a shell on the new system (prevent the shell's stderr fromnwhitehorn2011-06-021-1/+1
| | | | ending up in the install log).
* There are a couple of structs in mfireg.h with members named 'class'.emaste2011-06-021-4/+4
| | | | | | | | | | These cause problems when trying to include the header in a C++ project. Rename them to 'evt_class', and track the change in mfi and mfiutil. Submitted by: Mark Johnston Sponsored by: Sandvine Incorporated Reviewed by: jhb@ MFC after: 1 week
* Don't try to close the stream if fopen(3) fails.jh2011-06-011-1/+1
| | | | | PR: bin/155349 Submitted by: Urankar Mikael
* Start teaching pc-sysinstall about IPv6.bz2011-05-313-28/+249
| | | | | | | | | | | | | | | | Add some additional empty string checks for IPv4 and try to configure a netmask along with the address rather than doing things twice. Contrary to AUTO-DHCP, IPv6-SLAAC will accept static configuration as well, which we will use at least for resolv.conf currently and if we were given a static address configure that as an alias as well. The pc-sysinstaller changes going along were committed to PC-BSD as r10773. Reviewed by: kmoore Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 20 days
* Minor wording adjustments to usbdump(8).bcr2011-05-311-4/+4
| | | | | | | PR: docs/157317 Submitted by: Warren Block (wblock at wonkity dot com) Reviewed by: hps@ MFC after: 5 days
* Contrary to the rc.conf framework, when manualy enabling IPv6 we havebz2011-05-301-1/+1
| | | | | | | to -ifdiabled ourselves. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* While doing it right for current configuration, fix the entry for rc.confbz2011-05-301-1/+1
| | | | | | | adding the missing mandatory "inet6" keyword. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* Split netconfig into three parts:bz2011-05-294-43/+351
| | | | | | | | | | | | | | | - netconfig - what auto will call which in turn will check for IPv4 and IPv6 to be available and ask the user to configure it by calling - netconfig_ipv4 doing DHCP and static IPv4 addresses, and - netconfig_ipv6 doing rtsol and static IPv6 addresses, and then checking, querying and updating resolv.conf upon return. Both DHCP and rtsol (in the future) might update resolv.conf already so we seed ourselves from that file if available. Reviewed by: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* Check for IPv4 or IPv6 to be available by the kernel to notbz2011-05-294-53/+111
| | | | | | | | | | provoke errors trying to query options not available. Make it possible to compile out INET or INET6 only parts. Reviewed by: jamie Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 10 days
* Fix shell-based partitioning.nwhitehorn2011-05-281-1/+1
|
* Whitespace fixeskevlo2011-05-271-2/+2
| | | | Reviewed by: jpaetzel
* Bump the date of the man page to the date of the actual commit.bcr2011-05-251-1/+1
| | | | Noticed by: brix
* Document the device name change from gpioctl to gpioc in thebcr2011-05-251-5/+5
| | | | | | | | man page. PR: docs/157075 Submitted by: brix Reviewed by: gonzo
* [mdoc] Fixed .Dt call.ru2011-05-254-4/+4
|
* Add analogs to the -chrp-boot and -prep-boot options to mkisofs.nwhitehorn2011-05-224-10/+82
|
* - add missing options and arguments to program's usage()ru2011-05-202-23/+29
| | | | | | | | and sync it with manpage's SYNOPSIS - generally clean up a manpage's formatting Reviewed by: edwin
* Wipeout the end of disks, home to things like gmirror metadata, backup GPT ↵jpaetzel2011-05-181-10/+2
| | | | | | | | | | tables, and other potential evil. Submitted by: Kris Moore <kris@pcbsd.org> Approved by: kib (mentor) Sponsored by: iXsystems
* Extracting optional components requires mounting devfsjpaetzel2011-05-181-0/+2
| | | | | | Submitted by: Kris Moore <kris@pcbsd.org> Approved by: kib (mentor) Sponsored by: iXsystems
* Backout libinstall.a -> libpkg commit.flz2011-05-1738-68/+3315
| | | | Discussed with: erwin, brooks, bapt
* Fix manual section number for netstat(1).pluknet2011-05-171-2/+2
| | | | MFC after: 5 days
* Fix the nfsv4 man page to reflect the changes related tormacklem2011-05-151-27/+19
| | | | | making the new NFS client and server the default. This is a content change.
* Add new modifier - "R", when it is specified the path to pid filesobomax2011-05-142-32/+76
| | | | | | | | | will be considered as a path to a binary or a shell script to be executed after rotation has been completed instead of sending signal to the process id in that file. Sponsored by: Sippy Software, Inc. From the: FreeBSD hacking lounge at BSDCan
* Disconnect sun4v architecture from the three.attilio2011-05-141-3/+0
| | | | | | | | | Some files keep the SUN4V tags as a code reference, for the future, if any rewamped sun4v support wants to be added again. Reviewed by: marius Tested by: sbruno Approved by: re
* Make freebsd-update(8) smarter in how it handles $FreeBSD$ tags incperciva2011-05-111-3/+33
| | | | | | | | | | | | | | | | | | | configuration files. If the current file differs from the canonical version from the old release only due to differences in the $FreeBSD$ tag (which can happen if the system was installed from source code, depending on how the src tree was checked out) then freebsd-update will treat the file as "unmodified" and silently update it to the "clean" version in the new release. If the only change being made to a configuration file is in the $FreeBSD$ tag (e.g., for any configuration files which have been modified locally, now that we're using SVN and the $FreeBSD$ tag changes when a branch is created), freebsd-update will no longer print the diff and prompt "Does this look reasonable (y/n)?". Nagged by: pgollucci MFC after: 1 month
* Revert r221655:bcr2011-05-081-6/+2
| | | | | Various people voiced their concerns about these changes. Until this is resolved, we should use the old version.
* Jails have a problem in that if the jail directory is world-readable,bcr2011-05-081-2/+6
| | | | | | | | | | | | | | | an attacker with root access to the jail can create a setuid binary for their own use in the host environment (if they also have this access), thus breaking root in the host. This exploit is impossible if the jail's files are not world-readable. Add instructions to the man page on how to create a jail with the correct permissions set. PR: docs/156853 Submitted by: Chris Rees (utisoft at gmail dot com) Reviewed by: cperciva (security parts) MFC after: 9 days
* Minor usbdump update:hselasky2011-05-071-60/+68
| | | | | | | | - Use memcpy() instead of bcopy(). - Replace all asserts() by standard error messages. - Update usage(). MFC after: 7 days
* Simplify this code somewhat by only writing a 512-byte-sector APM map.nwhitehorn2011-05-061-29/+18
| | | | | | All firmwares can read it, we need to write one anyway for old OF versions, and if a 512-byte one is present, OS X ignores the 2048-byte one in favor of it.
* Fix boot on old machines (e.g. blue and white G3s) by synthesizing anwhitehorn2011-05-051-0/+19
| | | | 512-byte sector map instead unused space in the first 2048-byte sector.
* Encode horizontal scroll events (AC Pan) as button presses (bit 5 and 6)emax2011-05-041-0/+11
| | | | | Submitted by: David Demelier demelier dot david at gmail dot com MFC after: 1 week
* Add support for synthesizing an APM partition map to map Mac PowerPCnwhitehorn2011-05-031-0/+79
| | | | | | bootstrap partitions from the ISO9660 boot catalog. This preserves OS X's ability to mount the CD, while allowing us a way to provide HFS-ified bootstrap code for Open Firmware.
* Add a 'show progress' command that shows a summary of all in-progressjhb2011-04-293-2/+118
| | | | | | | | | commands for a given adapter. Specifically, it shows the status of any drive or volume activities currently in progress similar to the 'drive process' and 'volume progress' commands. Reviewed by: emaste MFC after: 1 week
* Fix typo in "continuously" argument used in patrol auto command.pluknet2011-04-271-1/+1
| | | | | | Obtained from: Sascha Wildner <saw att online dott de> Approved by: jhb MFC after: 3 days
* Patch the mountd and nfsd man pages to reflect the recent changesrmacklem2011-04-242-26/+14
| | | | | done by r220980 to deprecate the -e option and add the -o option. This is a content change for both man pages.
* This patch changes the default NFS server to the new one, which wasrmacklem2011-04-242-17/+17
| | | | | | | | referred to as the experimental server. It also adds a new command line option "-o" to both mountd and nfsd that forces them to use the old/regular NFS server. The "-e" option for these commands is now a no-op, since the new server is the default. I will be committing rc script and man changes soon. Discussed on freebsd-fs@.
* Check return code of setuid() in timedc.simon2011-04-231-1/+2
| | | | | | | While it will not fail in normal circumstances, better safe than sorry. MFC after: 3 days
* Check return code of setuid(), setgid(), and setgroups() in rwhod.simon2011-04-231-3/+12
| | | | | | | While they will not fail in normal circumstances, better safe than sorry. MFC after: 1 week
OpenPOWER on IntegriCloud