summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in usage.emax2005-09-011-1/+1
| | | | | Submitted by: Jonatan B < onatan at gmail dot com > MFC after: 3 days
* o correct alignment of 802.11 addresses passed to ether_ntoa to fixsam2005-08-301-5/+11
| | | | | | | | segfaults on amd64 o while here correct printf formats for size_t args Identified by: Pascal Hofstee MFC after: 3 days
* Fix unhandled malloc errors.philip2005-08-291-9/+54
| | | | | | | PR: bin/83467 Submitted by: Dan Lukes <dan -at- obluda.cz> Prodded by: glebius MFC after: 3 days
* Update number and size of Ports Collection.murray2005-08-281-2/+2
| | | | MFC after: 1 day
* Fix a bug introduced in revision 1.9 which causes chkgrp to coredump oncperciva2005-08-251-5/+9
| | | | | | | | certain corrupt files. Submitted by: liamfoy@dragonflybsd.org Reported by: Nikolay Kalev, via freebsd-current MFC after: 3 days
* Test last minute changes, as gcc isn't too smart.pjd2005-08-241-1/+1
| | | | Reported by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Use pidfile(3) in watchdogd(8).pjd2005-08-242-9/+18
|
* Use pidfile(3) in mountd(8). There is no need to use /var/run/mountd.lockpjd2005-08-242-17/+16
| | | | anymore.
* Use pidfile(3) in inetd(8).pjd2005-08-241-8/+16
|
* Use pidfile(3) in cron(8).pjd2005-08-244-63/+29
| | | | | | | Note, that when cron(8) cannot create pidfile, it'll exit. I didn't changed this behaviour, but its better to ignore errors other than EEXIST, so daemon can be started on systems where /var/ file system doesn't support locking (like NFS without rpc.lockd(8)).
* Add '-P' option which allows to specify pidfile.pjd2005-08-243-7/+36
|
* Use pidfile(3) in moused(8).pjd2005-08-242-6/+16
|
* Use pidfile(3) in syslogd(8).pjd2005-08-241-9/+16
|
* Teach daemon(8) how to use pidfile(3).pjd2005-08-243-11/+24
|
* Change the default adaptive algorithm for phk's one. Thanks to phkbruno2005-08-241-11/+13
| | | | | | | | and Kevin Oberman for this work. Submitted by: Kevin Oberman Reviewed by: njl Approved by: njl
* - Remove NTP servers which do not resolve in DNS.rodrigc2005-08-242-174/+138
| | | | | | | | | | - Use pool.ntp.org servers where possible, thanks to Chuck Swiger <cswiger at mac dot com> . - Update list of Swedish NTP servers, thanks to Fredrik Lindberg <fli+freebsd-current at shapeshifter dot se> . PR: bin/75479 MFC after: 1 day
* Spell powersavesleep correctly.brian2005-08-222-2/+2
|
* Sync code with the error report: calloc(number, 1) is equivalent topjd2005-08-191-1/+1
| | | | malloc(number).
* Use larger buffers to read lines from the vendor list.des2005-08-181-3/+16
| | | | | | | | | Trim trailing whitespace and comments before parsing, and skip empty lines. Skip subvendor / subdevice entries (which start with two tab characters). Change the scanf() format string to match any amount and type of whitespace between the device ID and the description text. MFC after: 3 weeks
* Whitespace cleanup.des2005-08-181-13/+13
|
* Make links for hoststat(8) and purgestat(8) man pages.gshapiro2005-08-171-0/+2
| | | | | PR: docs/85009 MFC after: 3 days
* Change the default partition sizing code in order tocperciva2005-08-162-18/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Provide larger /, /var, and /tmp partitions (the last increase was in 2001, and we now have both larger hard drives and more space-hungry software.) 2. If there is enough space available, allocate extra space to /var sufficient to store a crash dump. On systems where harddrivesize > 3 * RAMsize + 10GB, the default sizes will now be as follows: swap RAMsize * 2 / 512 MB /tmp 512 MB /var 1024 MB + RAMsize /usr the rest (8GB or more) On systems where harddrivesize > RAMsize / 8 + 2 GB, the default sizes will be in the following ranges, with space allocated proportionally: swap RAMsize / 8 -- RAMsize * 2 / 256 MB -- 512 MB /tmp 128 MB -- 512 MB /var 128 MB -- 1024 MB /usr 1536 MB -- 8192 MB On systems with even less disk space, the existing behaviour is not changed. Approved by: re (kensmith) MFC after: 1 day (or once people stop arguing about colours of paint)
* Not sure why, but SYSCTL_OUT() can sometimes keep returning ENOMEMpjd2005-08-151-11/+17
| | | | | | | | | | | | | | | | | | in sysctl_jail_list(). Because of this, jls(8) could enter into an endless loop. The strange thing is, that we can call jls(8) while the other one is in loop and it will succeed - SYSCTL_OUT() will not return ENOMEM there. Maybe SYSCTL_OUT() returns first ENOMEM, because there is no memory, but is marking some memory range as wired even on failure and another SYSCTL_OUT() calls are not going to succeed, because process exceeds limit of wired memory? ENOVMCLUE. Anyway. Fix jls(8) to ignore ENOMEM and retry only 4 times. Submitted by: Niklas Saers PR: kern/79245 MFC after: 3 days
* Spell "cmp > /dev/null" as "cmp -s".cperciva2005-08-141-1/+1
| | | | Suggested by: dougb
* Correctly exit from extract_run() and update_run() if files needed arecperciva2005-08-131-4/+9
| | | | | | | | | | | | | | | | | | | | | missing from ${WORKDIR}/files/. This bug was caused by the astonishing interaction of "return" and pipelines; in the following code, the "return" does not exit the function, but instead exits the subshell which was spawned for the last element of the pipeline; consequently, the output produced is "foo". foo() { echo bar | while read baz; do if [ ${baz} = "bar" ]; then return 1 fi done echo foo } Reported by: simon
* Misc mdoc(7) fixes:simon2005-08-131-7/+10
| | | | | | | | | - Bump document date for recent updates. - Use .Fx for FreeBSD. - Remove EOL whitespace. - Start new sentences on new lines. Reviewed by: cperciva
* Allow multiple commands to be specified on a single command line, e.g.,cperciva2005-08-132-7/+11
| | | | | | | | | "portsnap fetch update" or "portsnap -I cron update". They will be executed in the order that they appear, and duplicates are not removed (so "portsnap fetch fetch fetch fetch" is meaningful, albeit rather silly). Requested by: Roman Divacky
* Fix the progress statistics code by printing the right variable. Icperciva2005-08-131-1/+1
| | | | | | | missed this when I changed the stats code in the ports -> base transition. Pointed out by: simon
* save+restore wpa, privacy, and roaming settingssam2005-08-131-9/+57
| | | | MFC after: 2 weeks
* When using cmp(1) to determine if the ports tree is already up to date,cperciva2005-08-121-1/+2
| | | | | | | we want the exit code, but not the actual output; add a redirect to /dev/null. Pointy hat to: cperciva
* If we fail in chown(2), try to just change the group and continue on tobrian2005-08-111-10/+28
| | | | | | | | | | | change the permissions. Failures are still recorded. This allows mtree to do a generally better job of things when uid != 0. Sponsored by: ActiveState/Sophos Partially submitted by: neilw at ActiveState dot com Reviewed by: neilw at ActiveState dot com MFC after: 3 weeks
* Put rev. 1.65 into usage().obrien2005-08-111-1/+1
|
* If the ports tree is already up to date when we run `portsnap update`,cperciva2005-08-111-0/+5
| | | | | | | exit early; this avoids spending five seconds rebuilding the INDEX files. Requested by: somebody on IRC, but I can't remember who
* fix typo.ume2005-08-101-3/+3
| | | | | Submitted by: suz Obtained from: KAME
* Remove unused variable.cperciva2005-08-101-2/+1
| | | | Reported by: stefanf
* Add an option to tell what version of config(8) this is.obrien2005-08-102-2/+10
|
* Check that malloc() succeeds in makelist.cperciva2005-08-091-0/+2
| | | | | Submitted by: Roman Divacky (who did a very complete review of both make_index.c and phttpget.c)
* Replace INT_MAX with OFF_MAX. I used INT_MAX originally (in ports)cperciva2005-08-091-3/+3
| | | | because OFF_MAX wasn't defined on FreeBSD 4.x.
* When parsing the HTTP_PROXY environment variable, strip a trailing /cperciva2005-08-091-1/+5
| | | | | | | | | from the port number (if any exists). This unbreaks env HTTP_PROXY="http://localhost:3128/" portsnap fetch While I'm here, list both the host and the port in the error message output if getaddrinfo() fails, since either of them could be responsible for the failure.
* Add a missing EOL when printing "Latest snapshot on server is oldercperciva2005-08-091-5/+7
| | | | | | | | | | than what we already have" message. [1] When operating with the undocumented --debug option, replace "xargs phttpget" with "xargs -t phttpget", since that might conceivably help debugging. Noticed by: simon [1]
* Add portsnap to the base system. This is a secure, easy to use,cperciva2005-08-0810-0/+2233
| | | | | | | | | | | | | | | | | | | | | | | | | | fast, lightweight, and generally good way for users to keep their ports trees up to date. This is version 0.9.4 from the ports tree (sysutils/portsnap) with the following changes: 1. The experimental pipelined http code is enabled. No seatbelts in -CURRENT. (^_^) 2. The working directory has moved from /usr/local/portsnap to /var/db/portsnap (as discussed on -arch two days ago). 3. Portsnap now fetches a list of mirrors (distributed as DNS SRV records) and selects one randomly. This should help to avoid the uneven loading which plagues the cvsup mirror network. 4. The license is now 2-clause BSD instead of 3-clause BSD. 5. Various incidental changes to make portsnap fit into the base system's build mechanics. X-MFC-After: 6.0-RELEASE X-MFC-Before: 5.5-RELEASE X-MFC-To: RELENG_6, RELENG_5, ports discussed on: -arch and several other places "yes please" from: simon, remko, flz, Diane Bruce thinks this is a great idea: bsdimp Hopes he didn't forget any files: cperciva
* Add some more info about jail startup and shutdown.brueffer2005-08-071-7/+17
| | | | | Submitted by: Jeremie Le Hen <jeremie@le-hen.org> MFC after: 3 days
* Respect the YES_HESIOD build variablephk2005-08-063-1/+32
|
* The /stand directory now disappears out from under sysinstall whilekensmith2005-08-052-2/+4
| | | | | | | | | it is running during installations. The vsystem() function does get used after this happens (e.g. if you manually configure the network interface and ask it to enable the interface) so it needs to be a little smarter about whether it uses /stand/sh or /bin/sh. MFC after: 3 days
* Declare iftraceinit() at file scope.stefanf2005-08-051-2/+1
|
* The check for invalid characters introduced in 1.9 incorrectlyroberto2005-08-041-1/+2
| | | | | | | | | flags NIS entries as invalid. MFC6 candidate Submitted by: Bob Willcox <bob@immure.com> PR: bin/82325 (but I used the patch from Bob).
* Correctly print system-wide PMC counts for short-lived command lines.jkoshy2005-08-041-0/+3
| | | | | Reported by: cracauer MFC after: 3 days
* Add NO_PCVTphk2005-08-031-0/+2
|
* Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).seanc2005-08-021-0/+1
|
* Mention the default value of PATH and that it may be overridden.brueffer2005-07-311-2/+7
| | | | | Submitted by: Roman Divacky MFC after: 3 days
OpenPOWER on IntegriCloud