summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add an option to stop 'mouse drift' in some defective/cheap mice. This stopsphilip2005-09-192-4/+89
| | | | | | | | | the pointer slowly wandering away on its own in an annoying way when the mouse isn't physically moved. PR: bin/83970 Submitted by: Lena -at- lena.kiev.ua X-MFC after: 6.0-RELEASE
* Open the tty device and pass the fd for SNPSTTY.cognet2005-09-181-2/+8
| | | | MFC after: 3 days
* Add a note pointing out that certain information (IP address, list ofcperciva2005-09-181-0/+15
| | | | | | files fetched, FreeBSD release level) is transmitted to the portsnap server when portsnap is run, but that this information is only used anonymously and in aggregate.
* Handle circular dependencies properly (via errx(3)) rather than dumpingcperciva2005-09-171-2/+15
| | | | | | | core. This bug was made visible by a recent change to the audio/timidity++ port, which now has itself as a run dependency. Reported by: Emil Mikulic, Andreas Klemm
* Fix so that color changes are not lost when the video mode changes.rodrigc2005-09-171-0/+6
| | | | | PR: bin/83553 Submitted by: Dan Lukes <dan at obluda dot cz>
* Pidfiles should be created with permission preventing users from openingpjd2005-09-165-5/+5
| | | | | | | them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions. Pointed out by: green
* Portsnap uses host(1) to search for mirrors, but this is only availablecperciva2005-09-151-0/+6
| | | | | | | | when the base system is not compiled with NO_BIND set. Before we start searching for mirrors, make sure that host(1) can be found, and if it doesn't exist then fallback to the A record instead of the SRV records. Submitted by: Luca Morettoni
* Determine where the runtime loader got mapped to when a dynamicallyjkoshy2005-09-141-85/+119
| | | | | | | | linked process was exec()'ed, and map samples in that address range into the appropriate buckets in the runtime loader's profile. Improve a few comments. MFC after: 3 days
* Fix a bug that caused generated gmon.out profiles to be out ofjkoshy2005-09-131-10/+31
| | | | | | | whack. Use saturating arithmetic when incrementing a bucket. Improve a few comments. MFC after: 3 days
* Include <osreldate.h> at the top of the file.stefanf2005-09-122-6/+7
|
* Remove this file as it's mostly out of date. Up-to-date info such asbrian2005-09-121-49/+0
| | | | | | the program's origin is already in the man page. Update requested by: Xavier Venient & Jason McIntyre
* Fix typo: ${PORTDIR} -> ${PORTSDIR}.cperciva2005-09-111-1/+1
| | | | | | | | | Apologies to everyone who has run portsnap in 7.0-CURRENT since Tuesday; if there is a file "/.portsnap.INDEX" on your system, you can delete it (or even better, move it to /usr/ports/.portsnap.INDEX). Big pointy hat to: cperciva Reported that things weren't working properly: Aleksander Fafula
* Fix typo: Cowarly -> Cowardly.cperciva2005-09-071-1/+1
| | | | Reported by: Joerg Sonnenberger
* Teach portsnap how to ignore unwanted parts of the ports tree. A linecperciva2005-09-061-6/+66
| | | | | | | | | | | | | | | of the form "REFUSE foo" in portsnap.conf will result in parts of the tree matching "^foo" being (a) not extracted by "portsnap extract", (b) not updated by "portsnap update", and (c) not having any patches or new ports downloaded by "portsnap fetch" or "portsnap cron". The example shown in portsnap.conf demonstrates ignoring all the language categories. As mentioned in portsnap.conf.5, the use of an imcomplete ports tree is not officially supported; but this is something which many users have requested, so I'm adding it anyway. PR: bin/85619 (but not the patch provided therein) MFC after: 1 month
* Improve an error message.jkoshy2005-09-051-2/+2
| | | | MFC after: 3 days
* 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
OpenPOWER on IntegriCloud