summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Allow daemon(8) to run pidfile_open() before relenquishing privilegesghelmer2012-01-051-3/+3
| | | | | | | | | | so pid files can be written in /var/run when started as root. I do not expect this to cause any security issues, but if anyone objects it could be easily reverted. PR: bin/159568 MFC after: 4 weeks
* Touch up some more small typos missed in the previous round.uqs2012-01-052-2/+2
| | | | Reported by: Ben Kaduk <minimarmot@gmail.com> et al.
* Further fix a typo and spelling classic correctly in function names,uqs2012-01-051-8/+8
| | | | | | too. Submitted by: Ben Kaduk <minimarmot@gmail.com>
* Partial backout of r228990, restore original MIB object name.uqs2012-01-052-4/+4
| | | | | | | It's too late to change this in 9.0 -- so we have a release with the misspelling in the wild and should not break users that depend on it. Deprecating/replacing it because of a one-char typo seems excessive.
* Add an missing argument to open(2). If O_CREAT flag is specified,pjd2012-01-041-1/+1
| | | | file permission has to be specified as well.
* Add an missing argument to open(2). If O_CREAT flag is specified,pjd2012-01-041-1/+1
| | | | file permission has to be specified as well.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-039-26/+26
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Fix subtle typo: compare against idx -- not index.ed2012-01-031-1/+1
| | | | | | | In this contest, index refers to the index(3) function. In this case it doesn't really harm, as this function is never called with idx == NULL. MFC after: 2 weeks
* Simply use getprogname() to obtain the name of the process.ed2012-01-031-4/+2
|
* Fix typos in command descriptions.stefanf2011-12-311-2/+2
|
* Spelling fixes for usr.sbin/uqs2011-12-30113-219/+210
|
* Reencode files to UTF-8. Drop CP1252 em-dash.uqs2011-12-3015-18/+18
|
* - Fail when the utility is not invoked as rtprio nor idprio.delphij2011-12-271-23/+19
| | | | | | | | | | | | | | | | | | | | | | | - use warnx() to tell the user whether a process is running in normal, idle or realtime priority. with the old code it would have been possible for another process to send data to stdout between printf("%s: ", p); and printf("* priority\n"); and thus break the formatting. - 'rtprio 10 -0' triggeres non-intuitive behavior. It would first set the priority of itself to 10 *and* would then try to execute '-0'. Of course, setting the priority of [id|rt]prio itself doesn't make a lot of sense, but it is intuitive compared to the previous behavior. - 'rtprio -t --1' will actually pass over the '-1' to rtprio(). Now invoking rtprio like this will catch the wrong usage before passing over the invalid argument to rtprio(). - Garrett Cooper suggested to add further diagnostics where the failure occures, if execvp fails. PR: bin/154042 Submitted by: arundel MFC after: 1 month
* - 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.
OpenPOWER on IntegriCloud