summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Syntax, commas and stuff. Comments from jhb.sbruno2010-06-211-2/+2
| | | | | PR: bin/147572 MFC after: 2 weeks
* Clean up item_add and remove -fno-strict-aliasing from CFLAGS. Note thatrandi2010-06-204-5/+5
| | | | | | | the "aux" value in libdialog is really an opaque pointer, but libdialog stores it as a long for historical reasons. Approved by: cperciva (mentor)
* Initialise the "trials" variable to zero earlier in case we unexpectedlygavin2010-06-191-1/+1
| | | | | | error out early. Found by: clang static analyzer
* Remove dead assignments, we overwrite the variable almost immediately.gavin2010-06-192-3/+0
| | | | Found by: clang static analyzer
* Expand man page to document the fact that mptutil/mpt doesn't support RAID ↵sbruno2010-06-171-0/+12
| | | | | | | | | | | volumes in excess of 2TB. Document workaround via geom or zfs Modified submitter's original patch to reference why this is broken and what to do to work around the issue. Submitted by: hubert@tournier.org PR: bin/147572 Reviewed by: jhb MFC after: 2 weeks
* * Allow partial MB/GB values to be entered in the slice and label editors.brucec2010-06-163-20/+39
| | | | | | | | | | | | * Don't strdup the name when calling deviceRegister because the string is copied within new_device. * Use a subtype of 165, not 3, when creating a slice in noninteractive mode. PR: bin/135333 PR: bin/66350 Approved by: rrs (mentor) MFC after: 1 month
* Freq sysctls are quite heavy due to set of malloc()/free() calls. Avoidmav2010-06-161-9/+21
| | | | | | | reading current frequency on every period. Instead do it only after changing and periodically from time to time if somebody else change it. Also dynamically decrease sampling frequency up to 4 times on inactivity,
* When Emulate3Button is active, do not set select() timeout in states whenmav2010-06-151-1/+2
| | | | | | it is not needed. No need to kick CPU every 20ms without a purpose. Reviewed by: philip@
* Use literal format strings. Found by clang.emaste2010-06-141-2/+2
|
* Further unbreak powerpc & sparc64.marcel2010-06-141-1/+3
|
* Update for hostapd & wpa_supplicant 0.6.10.rpaulo2010-06-144-484/+2
|
* Fix build breakages on ia64 introduced some commits ago.marcel2010-06-132-36/+37
|
* style(9) fixes:imp2010-06-131-5/+3
| | | | | | | | | o make cmd scoped to the whole do_rules function, since it really is scoped to the whole fucnion. Making it static was the wrong way to fix referencing it outside of the block in which it was declared (and conforms to the style of the rest of the file). o remove a couple of meaningless blank lines o properly wrap one line.
* Enable ofwdump(8) on ARM as this is a useful tool to inspect a flattenedraj2010-06-131-0/+4
| | | | device tree.
* Unbreak the build on less common architectures.ed2010-06-131-1/+6
| | | | Submitted by: Andreas Tobler <andreast list fgznet ch>
* Clean up code by removing pre-C99 struct hack preprocessor magic.cperciva2010-06-111-6/+0
| | | | Approved by: randi (maintainer)
* Make sysinstall WARNS=2 clean.randi2010-06-116-8/+6
| | | | | Approved by: cperciva (mentor) MFC after: 1 month
* Cache the last result from if_indextoname for printing. This speeds upmlaier2010-06-111-3/+9
| | | | | | | | | | | "arp -an" when using a lot of aliases (on a single interface). A better fix would include a better interface for if_indextoname than getting the whole address list from the kernel just to find the one index->name mapping. Reported & analyzed by: Nick Rogers MFC after: 3 days
* More mdoc nitpicking to improve compatibility to mdocmluqs2010-06-111-0/+1
| | | | | | | | - .Nd in section NAME is not optional - .Ed was missing - "indent" is not a flag, but a literal argument for -offset - stop switching font sizes for acronyms - use .Brq instead of rolling our own
* mdoc nitpicking: the title argument shall be uppercaseuqs2010-06-111-1/+1
|
* Fix uninitialized variables that cause a crash when the network israndi2010-06-101-0/+3
| | | | | | | | initialized and sysinstall is not running as init. Submitted by: Nick Mills Approved by: cperciva (mentor) MFC after: 3 days
* mdoc: replace troff macros with -mdoc equivalentsuqs2010-06-082-25/+21
|
* Fix warnings found by Coverity.fabient2010-06-053-4/+8
| | | | | Found with: Coverity Prevent(tm) MFC after: 1 month
* Add comment that this value is unused.edwin2010-06-051-1/+1
| | | | | | | It is obvious that it isn't used, but both clang and Coverity talk about it. Found with: Coverity Prevent(tm) CID: 8066
* When there is a problem with writing, also bail out.edwin2010-06-051-1/+2
| | | | Found with the clang checker.
* Plug resource leak.trasz2010-06-051-0/+1
| | | | | Found with: Coverity Prevent CID: 7040
* Make chown(1) emit more useful error message when user/group name is invalid.trasz2010-06-031-3/+1
|
* Add file include processing for newsyslog.gordon2010-05-292-19/+116
| | | | | | | | | | | | | Format for the include line in /etc/newsyslog.conf is: <include> /etc/defaults/newsyslog.conf Other notes of interest: Globbing is supported in <include> statements. Properly detect circular include loop dependencies. Reviewed by: gad@ Approved by: wes@ (mentor) MFC after: 2 months
* Convert newsyslog to using queue(3) macros instead of a home rolled version.gordon2010-05-291-113/+71
| | | | | | Reviewed by: gad@ Approved by: wes@ (mentor) MFC after: 2 months
* mdoc: use mdoc spelling of Umlautsuqs2010-05-271-1/+1
|
* mdoc: .Ud has attitude, it takes no argument!uqs2010-05-271-1/+1
|
* mdoc: Garbage collect unused/unneeded macrosuqs2010-05-272-2/+2
|
* mdoc: Remove leading garbage, empty lines and order preambleuqs2010-05-273-4/+1
|
* Change the current working directory to be inside the jail created bycperciva2010-05-271-0/+4
| | | | | | | | | | | | | | the jail(8) command. [10:04] Fix a one-NUL-byte buffer overflow in libopie. [10:05] Correctly sanity-check a buffer length in nfs mount. [10:06] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-10:04.jail Security: FreeBSD-SA-10:05.opie Security: FreeBSD-SA-10:06.nfsclient
* Cleanup manpage as suggested by jhb@ to start new sentences on a new line.sbruno2010-05-241-3/+3
| | | | MFC after: 2 Weeks
* Explain how the new sub-second interval from changeset:208389 works.sbruno2010-05-231-1/+8
| | | | | | Approved by: scottl(mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks
* Flush all routes before adding the default route in order to allowrandi2010-05-221-2/+12
| | | | | | | | | sysinstall to cleanly re-initialize the network. PR: bin/145553 Submitted by: gcooper Approved by: cperciva (mentor) MFC after: 3 days
* Allow sub-second interval timings for iostat and vmstat.sbruno2010-05-212-6/+12
| | | | | | | | | | | e.g. vmstat -w.5 iostat -w.5 Reviewed by: jhb Approved by: scottl (mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks
* Add a new build option, MAN_UTILS. This option lets you control buildingjkim2010-05-191-1/+5
| | | | | | | | | utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. This patch is slightly improved by me from: PR: misc/145212
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-1910-13/+13
| | | | Reviewed by: ru
* Garbage collect unused variable, missed in r200840uqs2010-05-191-5/+0
| | | | Found by: clang static analyzer
* - Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)uqs2010-05-193-23/+11
| | | | | | | | | | | might be true on some systems [1] - Rewrite gotos to use return directly - Some spelling fixes - Reduce unneeded/non-standard Makefile settings Requested by: bde, imp [1] Explanation provided by: bde [1] Reviewed by: imp
* Add a sentence to the man page explaining that the -d optionbcr2010-05-181-1/+4
| | | | | | | | | can only be used when ntpd is compiled with DEBUG support. PR: docs/138206 Submitted by: Oliver Pinter (oliver dot pntr at gmail dot com) MFC after: 5 days Approved by: roberto
* Slightly improve wording.ivoras2010-05-171-1/+2
|
* Do not attempt to render a logrecord with length byte, until we havephk2010-05-151-0/+2
| | | | decompressed all the bytes required.
* Hide the creation and population of the temprootdougb2010-05-141-5/+5
|
* Sync apmd(8) with DragonflyBSD, bringing WARNS to 3uqs2010-05-146-40/+68
| | | | Reviewed by: ed (partial, long time ago)
* Wording fixes.brueffer2010-05-141-2/+2
| | | | | | PR: 143454 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 3 days
* List /var/cron/tabs in FILES and add descriptions for the other entries.brueffer2010-05-141-1/+5
| | | | | | | PR: 145912 Submitted by: Julian H. Stacey <jhs@berklix.com> Obtained from: OpenBSD MFC after: 1 week
* mdoc: move remaining sections into consistent orderuqs2010-05-139-47/+47
| | | | | | | This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. Found by: mdocml lint run Reviewed by: ru
OpenPOWER on IntegriCloud