summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Let rwhod use libulog.ed2009-12-272-62/+30
| | | | | | | | | | | | I am not planning on providing a mechanism tot stat() the database files directly. The disadvantage of this, is that rwhod will now be a little bit more heavy than it used to be. It normally used to fstat() the file descriptor to see whether the file had changed, but this is now impossible to implement, meaning we have to parse the entire utmp file each 180 seconds. This is probably not an issue on modern 16-way servers, but if it turns out to be a problem, we'll think of something.
* To remove a server, one should use double backslash, and half of themmarck2009-12-271-1/+1
| | | | | | are eaten by shell. Fix this. MFC after: 2 weeks
* Further improve the description, and bump Dd.dougb2009-12-271-2/+2
|
* Several refinements to libulog's API.ed2009-12-261-1/+1
| | | | | | | | | - Only set the fields in the ulog_utmpx structure that are valid for the command in question. This means that strings like "shutdown" or "~" are not visible to the user anymore. - Rename UTXF_* to UTXI_*, indicating the indexation, instead of using the `antique' filename. If we ever get rid of utmp, it makes little sense calling it by its old name.
* Disable the unneeded inclusion of <utmp.h>.ed2009-12-261-1/+1
| | | | | | | | The utmp code in systime.c is not enabled, so including <utmp.h> has no effect in our setup. This makes it a little easier for me to migrate to <utmpx.h>. Approved by: roberto
* Fix wake(8) synopsis to make it clear that at least one lladdr is requiredrwatson2009-12-262-2/+3
| | | | | | | as an argument. Submitted by: Marc Balmer <marc@msys.ch> MFC after: 3 days
* Provide a better short description and fix SEE ALSO section entries.brueffer2009-12-251-3/+3
|
* Make diskinfo report disk stripe size and offset. It should help users tomav2009-12-242-2/+13
| | | | make file systems optimally aligned and tuned for better performance.
* Let syslogd use utmpx.ed2009-12-242-27/+18
| | | | | Because strings are guaranteed to be null terminated, there is no need for excessive copying of strings, such as the line name.
* Let the snmp_hostres module use utmpx.ed2009-12-243-30/+9
| | | | Approved by: harti
* apm(8) is no longer linked to zzz(8), catch up.ru2009-12-222-30/+17
| | | | (Fixes "zzz" clash in the whatis(1) database.)
* MFV of tzdata2009t, r200831edwin2009-12-221-5/+5
| | | | | | | | | | zic: - Fix URL / reference to Calendrical Calculations: Third Edition libc/stdtime: - Fix typo in tzfile.5 (no changes in our part) MFC after: 1 week
* Grammar and minor tweaks to powerd(8) man page.gavin2009-12-211-4/+5
| | | | | | PR: docs/133186 Approved by: ed (mentor) MFC after: 2 weeks
* By popular request, execute rc.d scripts in the same environmentdougb2009-12-212-4/+21
| | | | | | as they are at boot time. Original concept submitted by: ume
* Don't consider non-existence of a PID file an error, we should be abledelphij2009-12-211-1/+12
| | | | | | | | | to proceed anyway as this most likely mean that the process has been terminated. PR: bin/140397 Submitted by: Dan Lukes <dan obluda cz> MFC after: 1 month
* Add support of using environment variable BURNCD_SPEED to specifydelphij2009-12-212-9/+19
| | | | | | | | recodring speed. PR: bin/140530 Submitted by: Alexander Best <alexbestms wwu.de> MFC after: 1 month
* Don't hide an error if the initial attempt to program a watchdog fromru2009-12-211-1/+1
| | | | within watchdogd(8) fails. This is also consistent with watchdog(8).
* The service command is an easy interface to the rc.d system.dougb2009-12-204-0/+242
| | | | | | Its primary purpose is to start and stop services provided by the rc.d scripts, however it can also be used to list the scripts using various criteria.
* Fix a problem with how mergemaster handles the hard links for /.cshrcdougb2009-12-191-13/+20
| | | | | | | | | | | | | | | | | | | | and /.profile. The problem is that install(1) will unlink the old file before it installs the new one, which means that in the best case we have to compare the changes for the old file twice. So, change the logic to first test to see if the link exists, then install the file. Then if the link was there and we're using -i, just create the link in /root and be done with it. Otherwise display the message to the user and give them the option. Because we are now sorting things before doing the comparison we can know conclusively that the files in / should be the sources, and the files in /root will be the targets, so adjust the paths accordingly. While I'm here, split a too-long error message into two lines and just return at the end of handling these files instead of setting the variable that says "do nothing" and then returning at the end of the function anyway.
* Fix an indentation issue, no functional changesdougb2009-12-191-22/+22
|
* In the places where find is used that the user may see the results,dougb2009-12-191-3/+3
| | | | | first pipe it to sort so that order of processing will be deterministic and like things will be grouped together.
* ntpd 4.2.4p8 is now in the tree, ntptrace is dead RIP.roberto2009-12-152-10/+1
| | | | Security: CVE-2009-3563
* - Fix main() to use two separated sockets for the two transportshrs2009-12-132-116/+300
| | | | | | | | | | | | | | | | | | | | | when "-P port" is specified. It invoked svc{tcp,udp}_create() for only one of the two allocated sockets, and prevented the TCP socket from binding to as the result. - Use TI-RPC functions and handle sockets in a transport-independent way. At this moment only AF_INET ("udp" and "tcp") is supported because others need rewrites of ACL handling and yp clients. - Add '-h addr' to specify addresses to bind to. - Convert _msgout() to use variable argument lists and remove asprintf() for error strings. - Remove register storage class specifier. Discussed with: kuriyama MFC after: 1 week
* We use gmt2local code from tcpdump and gnuc.h is no longer being useddelphij2009-12-131-2/+0
| | | | there, so remove this dummy header.
* Don't free jail parameter values after printing them - jail_param_getjamie2009-12-121-5/+0
| | | | | | | expects them to be there for the next jail in the list. PR: bin/141359 MFC after: 1 week
* Over time things that used to be files/directories/links can changedougb2009-12-121-2/+59
| | | | | | | | | | | | | to something else. So add code to detect when things don't match and give the user choices about how to fix it. If we're using -P and something in the above check needs to be moved we need to have the directory there for it, so create it at the beginning and delete empty versions of it at the end. The case where something used to be a file or link and now is supposed to be a directory (e.g., /etc/security) is especially dangerous, so make failure to install a necessary directory in $DESTDIR a fatal error.
* Simplify handling of MTREEFILE relative to DESTDIRdougb2009-12-111-7/+8
| | | | | Make the message about a missing MTREEFILE combined with -U more informative
OpenPOWER on IntegriCloud