summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* - document the -l option to usermodeadler2011-12-221-1/+12
| | | | | | | PR: docs/161588 Submitted by: "Luchesar V. ILIEV" <luchesar.iliev@gmail.com> Approved by: gjb MFC after: 1 week
* - Fix style(9) bug I introduced in the last commiteadler2011-12-211-1/+1
| | | | Approved by: jhb
* - Remove extraneous null ptr deref checkseadler2011-12-213-5/+8
| | | | | | | | - Fix memory leak Submitted by: Slono Slono <slonoman2011@yandex.ru> Approved by: jhb MFC after: 1 week
* Allow boot0cfg to force a PXE boot via boot0 on the next boot.jhb2011-12-202-2/+10
| | | | | | | | | | - Fix boot0 to check for PXE when using the pre-set setting for the preferred slice. - Update boot0cfg to use slice 6 to select PXE. Accept a 'pxe' argument instead of a number for the 's' option as a way to select PXE as well. Submitted by: Andrew Boyer aboyer averesystems MFC after: 2 weeks
* Small cleanups to panic() prototype.ed2011-12-202-5/+4
| | | | | | | - Let panic() use _Noreturn and __printflike() instead of GCC-specific attributes. - Remove prototype from ffs_subr.c and let it include ffs_extern.h. - Forward declare struct inode to make ffs_extern.h not depend on it.
* In usr.sbin/yp_mkdb/yp_mkdb.c, cast some printf field width parametersdim2011-12-191-2/+4
| | | | | | | to int, cast time_t to intmax_t, and use the corresponding printf length modifier. MFC after: 1 week
* In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format stringsdim2011-12-191-2/+2
| | | | | | not being literals. MFC after: 1 week
* Fix r228719; when you use intmax_t, you need stdint.h.dim2011-12-191-0/+1
| | | | | Pointy hat to: dim MFC after: 1 week
* Some people pointed out long is 32-bit on some arches, while time_t isdim2011-12-192-4/+4
| | | | | | | 64-bit, so better cast time_t to intmax_t, and use the appropriate printf format strings. MFC after: 1 week
* In usr.sbin/timed, fix several issues with printf formats:dim2011-12-194-9/+9
| | | | | | | | | | - Cast time_t's to long, and print them with %ld. - Print ptrdiff_t's with %td. - Print ssize_t's and size_t's with %zd and %zu. - Print int32_t's with %d. Also, replace some int variables with the more appropriate size_t. MFC after: 1 week
* Unfortunately, clang gives warnings about sendmail code that cannot bedim2011-12-191-0/+7
| | | | | | | turned off yet. Since this is contrib code, and we don't really care about the warnings, just turn make them non-fatal for now. MFC after: 1 week
* Forgot to add usr.sbin/sade/label.c in the previous commit.dim2011-12-181-1/+1
| | | | MFC after: 1 week
* In usr.sbin/sade/install.c and usr.sbin/sade/label.c, fix a few warningsdim2011-12-181-2/+2
| | | | | | about format strings not being literals. MFC after: 1 week
* In usr.sbin/sa/db.c, avoid warnings about assigning two const chardim2011-12-181-2/+2
| | | | | | arrays to non-const void pointers, by casting away const explicitly. MFC after: 1 week
* In usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, justdim2011-12-181-1/+1
| | | | | | | like time_t, better use %jd instead of %ju. Strangely enough, neither gcc, clang nor gcc 4.6 warn about this discrepancy... MFC after: 1 week
* In usr.sbin/rpc.ypupdated/yp_dbupdate.c, include stdint.h, so intmax_tdim2011-12-181-0/+1
| | | | | | | is known, otherwise it won't build. Pointy hat to: dim MFC after: 1 week
* In usr.sbin/rpc.ypupdated/yp_dbupdate.c, use the appropriate printfdim2011-12-181-1/+1
| | | | | | length modifier for time_t (after casting it to intmax_t). MFC after: 1 week
* In usr.sbin/route6d/route6d.c, use the correct printf length modifierdim2011-12-181-1/+1
| | | | | | for an ssize_t. MFC after: 1 week
* In usr.sbin/pw/pw_user.c, use the correct printf length modifier for adim2011-12-171-1/+1
| | | | | | ptrdiff_t. MFC after: 1 week
* In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about formatdim2011-12-171-2/+2
| | | | | | strings not being literals. MFC after: 1 week
* In usr.sbin/pkg_install/updating/main.c, use the size of the destinationdim2011-12-171-2/+2
| | | | | | buffer as size argument to strlcpy(), not the length of the source. MFC after: 1 week
* Use NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built fordim2011-12-172-0/+2
| | | | | | | x86, any alignment warnings can be safely ignored. Define YY_NO_INPUT in usr.sbin/ndiscvt/inf-token.l, so no unused lex functions are defined. MFC after: 1 week
* In usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiersdim2011-12-171-2/+4
| | | | | | for off_t (aka int64_t). MFC after: 1 week
* In usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing thedim2011-12-171-1/+2
| | | | | | buffer, that also avoids warnings. MFC after: 1 week
* In usr.sbin/keyserv, fix some implicit enum conversions, and use thedim2011-12-172-12/+12
| | | | | | correct printf length modifiers for uid_t. MFC after: 1 week
* In usr.sbin/iostat/iostat.c, use printf format specifiers fromdim2011-12-171-8/+9
| | | | | | inttypes.h for u_int64_t's. While here, sort #include directives. MFC after: 1 week
* In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not beingdim2011-12-171-2/+2
| | | | | | literals. MFC after: 1 week
* In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field widthdim2011-12-171-1/+1
| | | | | | parameter to int. MFC after: 1 week
* Use NO_WCAST_ALIGN for usr.sbin/cpucontrol; because this is only builtdim2011-12-171-0/+2
| | | | | | for x86, any alignment warnings can be safely ignored. MFC after: 1 week
* In usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h, use the correctdim2011-12-171-2/+2
| | | | | | | enumeration types for the mesh_peering and mesh_forwarding members of struct wlan_iface, to fix enum conversion warnings. MFC after: 1 week
* Use NO_WCAST_ALIGN for usr.sbin/boot0cfg; because this is only built fordim2011-12-171-0/+2
| | | | | | x86, any alignment warnings can be safely ignored. MFC after: 1 week
* In usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer asdim2011-12-171-1/+1
| | | | | | the length argument to memset, but the size of the object pointed to. MFC after: 1 week
* Add missing static and const keywords to kbdcontrol.ed2011-12-121-63/+64
| | | | | | None of the symbols provided by kbdcontrol.c are used by other source files of this binary. Slightly reduce the binary size and make much more symbols read-only by adding proper static and const keywords.
* Add VIA microde update support to cpuctl(4) and cpucontrol(8).fabient2011-12-124-1/+288
| | | | | | Support have been tested with X2 CPU and QuadCore CPU. MFC after: 1 month
* Add static keywords to vidcontrol(1).ed2011-12-111-13/+11
| | | | | | While there, remove the false optimisation of the colors array. It seems that changing it to an array of pointers instead of a 16x16 array does not cause any increase in binary size at all.
* Add missing static keyword.ed2011-12-111-1/+1
| | | | | All global variables and functions in powerd are marked static, except this array of strings. Add the keyword, for consistency.
* Replace char copyright[] by static const char copyright[].ed2011-12-101-1/+1
| | | | It seems the latter is used throughout the tree.
* Use the correct volume identifier field when parsing MR_EVT_ARG_LD_STRIPjhb2011-12-051-1/+1
| | | | | | arguments. MFC after: 2 weeks
* Prevent user astonishment by providing the shell option at the end, afternwhitehorn2011-12-021-12/+11
| | | | | | | | | any installer-provided configuration files have been copied. This allows users to edit their fstab, if desired, and to see what the installer has placed in rc.conf. Requested by: phk MFC after: 1 day
* Add a screen that asks if the user would like to enable crash dumps,kensmith2011-12-021-0/+14
| | | | | | | | | | giving them a very brief description of the trade-offs. Whether the user opts in or out add an entry to what will become /etc/rc.conf explaining what dumpdev is and how to turn on/off crash dumps. The folks who handle interacting with users submitting PRs have asked for this. Reviewed by: nwhitehorn MFC after: 1 day
* Sync xdialog_menu() implementation with sade.fjoe2011-12-011-1/+39
|
* Fix dialog autosizing: dlg_count_columns() does not handle NL characters.fjoe2011-12-011-4/+21
|
* Generate ${NORMAL_CTFCONVERT} invocation without '@' modifier:fjoe2011-11-301-1/+1
| | | | | - ${NORMAL_CC} is also invoked without '@' - Userland CTF support was changed previously to echo ctfconvert invocations too
* If using DISTDIR we need to be sure to create a ${DESTDIR}/var/db/zoneinfodougb2011-11-291-2/+2
| | | | | PR: bin/162891 Submitted by: Helge Oldach <src-mergemaster-nov11@oldach.net>
* In build_volume(), check if arrays is allocated before traversing itsdelphij2011-11-291-3/+5
| | | | | | | | | items. While parsing the arrays input, it's possible that we reach the error path before initializing the 'arrays' pointer, which in turn leads to a NULL deference. Submitted by: Garrett Cooper MFC after: 1 week
* Merge ACPICA 20111123.jkim2011-11-284-26/+31
|
* Plug memory leaks and fix open(2) error check.kevlo2011-11-283-1/+3
| | | | | Reviewed by: nwhitehorn MFC after: 3 days
* Point out that @reboot runs at every cron startup, not just systemwblock2011-11-251-1/+1
| | | | | | | | | startup. Discussed on: hackers@ Approved by: gjb (mentor) MFC after: 1 week
* Remove DEBUG_FLAGS.fjoe2011-11-251-1/+0
|
* calloc +1 DIALOG_LISTITEM to prevent possible wild pointer accessfjoe2011-11-241-3/+3
| | | | in dlg_default_listitem().
OpenPOWER on IntegriCloud