summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Port lastlogin(1) to libulog.ed2009-12-092-43/+21
| | | | | Just use ulog_getutxuser() to obtain lastlog records or ulog_getutxent() to browse through all of them.
* Don't let sysinstall depend on <utmp.h>.ed2009-12-091-4/+3
| | | | | Looking at the other entries, I suspect we must also reserve one terminating byte, so I'm using UNAME_FIELD_LEN - 1, not UNAME_FIELD_LEN.
* Don't depend on <utmp.h>.ed2009-12-061-4/+3
| | | | | | MAXLOGNAME seems more applicable in this case, because UT_NAMESIZE refers to the username field in utmp files, which is clearly unrelated to repquota(8).
* Make pw(8) build without <utmp.h>.ed2009-12-061-5/+0
| | | | | | The size of the username record in utmp files should not influence the maximum username length. Right now ut_user/ut_name is big enough, so in this case it's dead code anyway.
* Make sure enough memory is allocated for a struct pft_entry whensyrinx2009-12-051-1/+1
| | | | | | | refreshing the list of pf tables. OKed by: philip MFC after: 1 week
* - In ypproc_all_2_svc(), yp_fork() is called only when !debug case.kuriyama2009-12-041-1/+4
| | | | | So _exit() in the bottom of this function should be called with the same case.
* - Replace magic number with YPOLDVERS macro (which may be missed inkuriyama2009-12-041-1/+1
| | | | r14262).
* Yet another cosmetic fix.trasz2009-12-031-3/+3
|
* Cosmetical fixes.trasz2009-12-031-11/+11
|
* Cosmetical fixes.trasz2009-12-031-23/+21
|
* Description of steps required to setup NFSv4 server is in nfsv4(4);trasz2009-12-031-1/+2
| | | | | add reference to exports(5), since that's the obvious starting point for searching for this.
OpenPOWER on IntegriCloud