summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add ip4.saddrsel/ip4.nosaddrsel (and equivalent for ip6) to controlbz2010-01-171-4/+12
| | | | | | | | | | | | | | | | | | | | whether to use source address selection (default) or the primary jail address for unbound outgoing connections. This is intended to be used by people upgrading from single-IP jails to multi-IP jails but not having to change firewall rules, application ACLs, ... but to force their connections (unless otherwise changed) to the primry jail IP they had been used for years, as well as for people prefering to implement similar policies. Note that for IPv6, if configured incorrectly, this might lead to scope violations, which single-IPv6 jails could as well, as by the design of jails. [1] Reviewed by: jamie, hrs (ipv6 part) Pointed out by: hrs [1] MFC After: 2 weeks Asked for by: Jase Thew (bazerka beardz.net)
* Unbreak world WITHOUT_NETGRAPH.antoine2010-01-161-0/+3
| | | | | | | PR: 137487 Submitted by: bf (previous version) No objections: net@ MFC after: 2 weeks
* Use the newly brought %U macro.ru2010-01-153-3/+3
|
* Oops, deleted one line too many. Add back the null case for IGNORE_MOTDdougb2010-01-151-0/+1
|
* Now that we've officially arrived at FreeBSD 9, remove the IGNORE_MOTDdougb2010-01-151-5/+2
| | | | compat shim as advertised. This change should not be MFC'ed.
* Fix a few whitespace issues and comment typos that I found while readingjoel2010-01-141-11/+9
| | | | through this file.
* Port all applications in usr.sbin/ from libulog to utmpx.ed2010-01-136-13/+7
|
* Port lastlogin(8) to utmpx.ed2010-01-132-17/+14
| | | | | | While there, fix a bug I introduced previously. We must reopen the database for each username passed on the command line. We must rewind the database and search from the beginning.
* Port timed away from logwtmp(3). Let it use utmpx.ed2010-01-132-9/+17
|
* Port ac(8) to utmpx.ed2010-01-131-102/+69
| | | | | | | Similar to last(1), it must compare ut_id's instead of TTYs to determine whether a session has been terminated. It must also use ut_type to determine the type of the login record instead figuring it out by itself.
* Port ppp(8) to utmpx.ed2010-01-134-55/+32
| | | | | | | | A nice thing about utmpx is that it makes it very easy to log sessions that don't use TTYs. This is because the file is not indexed by TTY slots anymore. Silence from: brian
* Add a driver by Fredrik Lindberg for Option HSDPA USB devices. These differthompsa2010-01-134-0/+1648
| | | | | | | | from standard 3G wireless units by supplying a raw IP/IPv6 endpoint rather than using PPP over serial. uhsoctl(1) is used to initiate and close the WAN connection. Obtained from: Fredrik Lindberg <fli@shapeshifter.se>
* Print error messages to stderr.thompsa2010-01-101-5/+5
| | | | Submitted by: Hans Petter Selasky
* Add missing library dependency.antoine2010-01-091-0/+1
| | | | MFC after: 1 month
* Correct spelling.bz2010-01-091-1/+1
| | | | | | Submitted by: (pluknet gmail.com) MFC after: 4 days X-MFC with: r201806
* Various language fixes. Also fixed the URL to totd, obtained from NetBSD.brueffer2010-01-091-45/+42
| | | | | | PR: 38061 Submitted by: Chris Pepper <pepper@rockefeller.edu> MFC after: 1 week
* Switch traceroute over to make use of proper in-kernel sourcebz2010-01-082-2/+96
| | | | | | | | | | address selection. Reviewed by: rwatson, fenner MFC after: 1 week X-MFCable to: stable/8, stable/7 (after r183571). PR: kern/139454 Tested by: Frank Steinborn (steinex nognu.de)
* Update copyright datedougb2010-01-082-24/+30
| | | | | | | | | | | Update delete_temproot() to include the error message if it fails, and clean up the places where it's called. If there are no files left in temproot when the comparison is done delete it without prompting. This should make "automated" runs of mergemaster without -a a little easier. Document the new behavior in the man page.
* This now passes a make universe with WARNS=6.dwmalone2010-01-071-2/+0
|
* Sync to p4thompsa2010-01-074-24/+213
| | | | | | - Add new quirks commands and the '-d' option optionally to specify the ugen device. Submitted by: Hans Petter Selasky
* New style function definitions.dwmalone2010-01-051-8/+11
| | | | | Fix constness problem - don't know that pstatus won't change a string with no whitespace.
* Unbreak bootparamd when setting WITHOUT_NIS.ed2010-01-041-2/+2
| | | | Submitted by: bf1783 googlemail com
* Test index value is within the range before using it to referencedelphij2010-01-041-1/+1
| | | | | | | | array member. PR: bin/141838 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 2 weeks
* Modernize scandir(3) and alphasort(3) interfaces according to the IEEEkib2010-01-042-2/+2
| | | | | | | | | | | | | | | | | | | | Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions, so we better follow too (older glibc used old BSDish alphasort prototype and corresponding type of the comparision function for scandir). While there, change the definitions of the functions to ANSI C and fix several style issues nearby. Remove requirement for "sys/types.h" include for functions from manpage. POSIX also requires that alphasort(3) sorts as if strcoll(3) was used, but leave the strcmp(3) call in the function for now. Adapt in-tree callers of scandir(3) to new declaration. The fact that select_sections() from catman(1) could modify supplied struct dirent is a bug. PR: standards/142255 MFC after: 2 weeks
* Complete ntptrace(8) removal:antoine2010-01-031-1/+1
| | | | | | | - do not install man page - update ObsoleteFiles.inc Approved by: roberto@
* The default hash table size is 257 not 255. Reword the rest of the linegavin2010-01-031-1/+1
| | | | | | | | slightly while here. PR: bin/121671 Submitted by: Artis Caune artis.caune gmail.com Approved by: ed (mentor)
* Lower WARNS for sendmail.ed2010-01-031-1/+1
| | | | | | | Even though it builds with WARNS=2, some users link sendmail from the base system against SASL. This doesn't build in this case. Reported by: Andrzej Tobola <ato iem pw edu pl>
* Make it clear that "interface" is one out of possibly many interface of thembr2010-01-021-2/+2
| | | | | | | local machine (s/the network interface/a network interface). Submitted by: Marc Balmer <marc@msys.ch> MFC after: 3 days
* Use UFS2 as default filesystem. Now pc98's boot2 works for UFS2.nyan2010-01-021-4/+0
| | | | MFC after: 2 week.
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-02163-137/+157
|
* Remove unused variables.ed2010-01-022-2/+1
|
* Mark ftwv as __unused. This compare function does not need it.ed2010-01-021-1/+1
|
* ANSIfy some more tools in usr.sbin/.ed2010-01-0213-40/+24
| | | | | Most of these tools build with WARNS=6, except for their use of K&R function declarations.
* If we are using -p it does not make any sense to even create thedougb2009-12-311-2/+2
| | | | MTREENEW file since it will never be used.
* It's not necessary to include both Op and Fl for command line optionsdougb2009-12-301-9/+11
| | | | | | included in the text, so use only the latter. Clarify that using -U doesn't make sense in combination with -a
* Document the DELETE_STALE_RC_FILES option introduced in r201291. This isdougb2009-12-301-16/+19
| | | | | | | | an "rc file only" option by design. While I'm here, update the comments in the example rc file to indicate which command line options they relate to, and correct the defaults for a couple of options.
* Add some patches contributed by jhb:dougb2009-12-301-23/+34
| | | | | | | | | | | | | | | 1. Don't prompt the user for "-U but no db" error if we're using -a 2. Add an option to delete stale rc.d files automatically if the user has DELETE_STALE_RC_FILES in their rc file. Lack of command line option for this is not an oversight. 3. Add []'s around the terminal $ for the $FreeBSD$ test for -F For one bug raised by jhb I did a more thorough solution: There were a lot of things that "snuck in" between the end of the test for -r and the start of the comparison. One of them is the creation of the mtree db, as pointed out by jhb. Fix this problem more thoroughly by moving the end of the test down to where it should/used to be, right before the comparison. As a result, indent the interloping code to match.
* The proxy arp entries could not be added into the system over theqingli2009-12-301-29/+35
| | | | | | | | | | | | | | | | | | IFF_POINTOPOINT link types. The reason was due to the routing entry returned from the kernel covering the remote end is of an interface type that does not support ARP. This patch fixes this problem by providing a hint to the kernel routing code, which indicates the prefix route instead of the PPP host route should be returned to the caller. Since a host route to the local end point is also added into the routing table, and there could be multiple such instantiations due to multiple PPP links can be created with the same local end IP address, this patch also fixes the loopback route installation failure problem observed prior to this patch. The reference count of loopback route to local end would be either incremented or decremented. The first instantiation would create the entry and the last removal would delete the route entry. MFC after: 5 days
* Let umount build with -Wold-style-definition.ed2009-12-301-6/+12
|
* Add undocumented 'portsnap alfred' command, which runs (fetch|cron)cperciva2009-12-301-1/+17
| | | | | | | | based on whether fd 0 is a terminal, and then runs (extract|update) based on whether ${PORTSDIR} exists. Requested by: alfred MFC after: 1 month
* ANSIfy almost all applications that use WARNS=6.ed2009-12-2912-25/+23
| | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
* Add missing `void' keywords.ed2009-12-295-5/+5
|
* Remove extra space introduced by the previous commit.trasz2009-12-291-1/+1
| | | | Submitted by: rwatson
* Remove pppd and SLIP-related stuff.trasz2009-12-291-2/+2
|
* Use reallocf() to simplify some logic.jhb2009-12-291-7/+3
| | | | MFC after: 2 weeks
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-283-4/+4
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* Make umount(8) WARNS=6 clean:delphij2009-12-281-7/+7
| | | | | | | | | | | - Cast delimiter width to integer [1] - Solve name conflicts against system header - Constify parameters to avoid qualifier conflict PR: bin/140017 [1] Submitted by: Ulrich Spörlein <uqs spoerlein net> [1] MFC after: 1 month Sponsored by: iXsystems, Inc
* Don't refer to pppd(8).trasz2009-12-281-6/+5
|
* Update the "-l or -r" usage to better conform to the standarddougb2009-12-271-1/+1
| | | | Submitted by: ed
* Update the "-l or -r" usage to better conform to the standarddougb2009-12-271-1/+1
| | | | Submitted by: ed
OpenPOWER on IntegriCloud