summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2016-04-06move the parent and vnetid stuff around so it builds on ramdisks too.David Gwynne
ramdisk breakage found by jsg@ ok jsg@
2016-04-06document autoconfprivacy being the defaultJonathan Gray
ok stsp@ bluhm@
2016-04-06move getting the vnetid out next to getting the ifparentDavid Gwynne
its now separate to getting the tunnel address. ok mpi@
2016-04-04Remove caveat about only supporting 512-byte sectors.Kenneth R Westerback
2016-04-04Fix memory leak. Call proto_free() always to free proto.YASUOKA Masahiko
Diff from Yuuichi Someya. ok reyk markus
2016-04-02Another use for fcntl() and thus of the superfluous 3rd parameterKenneth R Westerback
is when sanitising standard fd's before calling daemon(). Use a tweaked version of the ssh(1) function in all three places found using fcntl() this way. ok jca@ beck@
2016-03-31Don't use .Aq for syntax elements that require ASCII "<>".Ingo Schwarze
Patch from Christian Heckendorf <mbie at ulmus dot me>. OK jmc@ bentley@
2016-03-31Simplify MACHINE tests, the only platforms in the tree without wsdisplayJonathan Gray
are octeon and hppa64.
2016-03-30Dump strdup()/free() dance and just use a local buffer to translate helpKenneth R Westerback
messages to GPT. Unchecked strdup() result noted by mestre@. ok mestre@ tim@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-28The GPT versions of help strings that don't contain'MBR' wereKenneth R Westerback
leaking. Refactor logic a bit to avoid leak and make logic clearer. Noticed by (and initial diff from) mestre@ and his friend clang.
2016-03-28Remove unused variablesRicardo Mestre
OK krw@
2016-03-17Last parameter to execl[e]() functions *must* be cast to a pointer.Kenneth R Westerback
Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@
2016-03-17simplify previous; ok bentleyJason McIntyre
2016-03-17missing El in previous;Jason McIntyre
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate. ok deraadt@; man bits ok jmc@
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2016-03-16There's no reason to have execute permissions on a file system image.natano
ok millert
2016-03-14Replace an ad-hoc implementation of opendev(), with said function andnatano
open the device only once with the correct flags, instead of twice (one file handle for reading and one for writing). Committing this at once because the changes are interrelated. ok stefan
2016-03-14Add a missing "cpath" promise; newfs_ext2fs can create files when usednatano
with the -F and -s flags. ok stefan
2016-03-10Don't retransmit responses for unauthenticated messages.YASUOKA Masahiko
Base on diff from Yuuichi Someya ok markus reyk mikeb
2016-03-09We are done providing support for the vax.Theo de Raadt
lots of agreement.
2016-03-09Accept only character special devices rather than generating a coreKenneth R Westerback
dump on the attempt to get a disklabel from a regular file. Regular files have not been acceptable as the 'disk' for some time, and pledging changed the consequences from a somewhat obscure error message to an abort(). Issue discovered by espie@. ok natano@
2016-03-07Use opendev() instead of a plain open().natano
ok deraadt
2016-03-07http -> https for IETF/IANA URLs in commentsmmcc
2016-03-07Use the full idiom for error checking with strtoul(3), astb
exemplified in the man page. Requested by deraadt@. Joint work with natano@ input and ok espie@, deraadt@
2016-03-06Drop "rpath" promise. Now that pledge() is called after setlocale(),tb
this is no longer needed. ok beck@, natano@
2016-03-06my bad. thought it was setlocale "C".Marc Espie
2016-03-06Tighten mknod pledge().natano
The wpath, cpath and fattr promises are not required for calling mknod(2), dpath is enough. ok semarie@ testing and ok tb@
2016-03-05better error messages, common work with natano@Marc Espie
2016-03-05Remove unused node type; ok espie@natano
2016-03-05Remove debugging code, extra whitespace and a lint annotation.tb
"just clean it", deraadt@; ok sha256
2016-03-05Use mknod(2) to create FIFOs by setting S_IFIFO in the mode.Todd C. Miller
Simplifies the logic in domakenodes() slightly. OK espie@
2016-03-05Almost complete rewrite of mknod.Marc Espie
With this, none of the original code survives, so the Copyright notice can be changed accordingly. This does pledge upfront, because having fifos or devices with setuid/gid/sticky makes no sense anyway. The reorganization was done to allow a "create multiple devices" at once mode, in order to speed up MAKEDEV (eventually) now that the ksh builtin is gone. The code is picky and checks all parameters before doing anything. Inputs from natano, deraadt, rpe, millert, tb, jmc... okay tb@, deraadt@
2016-03-05fix steps for cert creation;Jason McIntyre
issue reported by igor.kos (temporary) fix entirely provided by sthen
2016-03-04Now that the ksh built-in mknod is gone, don't mention it here.tb
ok deraadt@, jmc@
2016-03-04Invert the pledge() condition.natano
The only case where we don't want to pledge() is when a mode containing the suid, sgid or sticky is is passed on the command line. mknod() in a pledged binary would always strip those bits. discussion and ok espie@ ok deraadt@ semarie@ tb@
2016-03-03ping(8) and ping6(8) use different types for packet counters. InFlorian Obser
preparation of a merge just use int64_t and be done with it. OK deraadt
2016-03-03Remove option USER_LDT and everything depending on it.Christian Weisgerber
Remove machdep.userldt sysctl. Remove i386_[gs]et_ldt syscall stub from libi386. Remove i386_[gs]et_ldt regression test. ok mlarkin@ millert@ guenther@
2016-03-02repair for ramdisk buildsTheo de Raadt
2016-03-02provide generic ioctls for managing an interfaces parentDavid Gwynne
in the future this will subsume the individual vlandev, carpdev, pppoedev, foodev options for things like vlan, carp, pppoe, etc. inspired by vnetid ok mpi@ jmatthew@
2016-02-29Print ssize_t with %zd; ok deraadt@ mmcc@Jeremie Courreges-Anglas
2016-02-29delete the kern.emul/KERN_EMUL sysctl bits since there are noChristian Weisgerber
emulations left; ok millert@ deraadt@, jmc@ (man pages)
2016-02-28Add a missing Ns macroTim van der Molen
2016-02-23A disk name of /dev/wd0c doesn't work. Correct verbiage and example.Kenneth R Westerback
Discovered by rpe@. Tweaked by schwarze@. ok rpe@ schwarze@ jmc@ deraadt@
2016-02-23Fix display of pdisk partition sizes by casting the 32-bit numberKenneth R Westerback
of blocks to (long long) before multiplying by 512 and passing the value to fmt_scaled(). Discovered and fix tested by rpe@. ok rpe@ deraadt@
2016-02-18TMPDIR is no longer supported;Jason McIntyre
from rafael neves
2016-02-10Permit negative x and y coordinates in mouse.scale for uts and ums.Philip Guenther
Needed by some touchscreens. no objection matthieu@
2016-02-06Eliminate #include inside *.h files and include only needed headers inKenneth R Westerback
each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
2016-02-04Fix an unitialized variable; pointed out by jsg@.Masao Uebayashi