summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2016-04-13remove "abort" promise from debugging code in radiusdSebastien Marie
it is the default now, and the promise name isn't valid anymore. ok yasuoka@
2016-04-12The -T flag consumes the same data as the -f flag so it requiresTodd C. Miller
nlist too. Fixes a crash when the -T flag is specified due to calling kvm_read() with a NULL kvm_t. From Rob Pierce
2016-04-10convert ypldap_addr list to a tailqJonathan Matthew
ok dlg@
2016-04-10arguments to "chain" are space separated, not comma; verified by jungJason McIntyre
diff from david+bsd i also removed Op, since ... is enough/
2016-04-09Use builtin.Antoine Jacoutot
2016-04-08When bgp receives an RTM_CHANGE message for an RTF_MPATH route[1], andPeter Hessler
it finds it actually on an interface, bgpd can get confused. In this case, just log it and treat it as an RTM_ADD so bgpd doesn't suicide. [1] includes all ospfd installed routes, btw. OK benno@ sthen@
2016-04-07Place a BOOTARG_END section at the end of the boot arguments list pushedMike Larkin
to the VM during boot. i386 guest kernels need this marker to boot, and with this diff, it is possible to install and run an OpenBSD i386 guest VM using vmm(4). Note that i386 guests require a host CPU that supports unrestricted guest mode (eg, post-Nehalem) for the time being, hopefully this can be addressed later.
2016-04-07Remove headers associated with code that's been moved to other .c filesPhilip Guenther
ok mlarkin@
2016-04-06Apply revisions 1.4 and 1.5 from ldapd's ber.c to ypldap's copy, so it canJonathan Matthew
deal with messages that haven't been fully read from the server yet. Not needed yet, but will be soon. ok dlg@
2016-04-05Move more fcntl(,F_GETFL,0) -> fcntl(,F_GETFL).Kenneth R Westerback
No functional change. ok guenther@
2016-04-05Describe the format used by -s once, and refer to it when documenting -f.Jeremie Courreges-Anglas
Discussed with jmc@
2016-04-05Consistent v6-speak: hostname -> nodename, proxy NDP -> ND proxyJeremie Courreges-Anglas
Discussed with jmc@
2016-04-05Pointless commented-out lines; discussed with jmc@Jeremie Courreges-Anglas
2016-04-05etheraddr -> ether_addr, as in arp(8); discussed with jmc@Jeremie Courreges-Anglas
2016-04-05Support processors without unrestricted guest capability.Mike Larkin
ok stefan
2016-04-05Remove the iterator for control connections unfinished and unused.YASUOKA Masahiko
ok claudio
2016-04-04Directly use physical addresses from ELF header for kernel loading.Stefan Kempf
This allows us to remove the 'do_mask' parameters in read_mem and write_mem as well as the address mask operaton itself. ok mlarkin@
2016-04-04Add sys/queue.h where it's needed. Unbreak userland following recentStuart Henderson
removal from mbuf.h. ok mpi@
2016-04-04In udpsockmode codepath dhcpd.c had the promise route for pledge(2) but it wasRicardo Mestre
missing from udpsock_startup() (udpsock.c) which happens earlier and therefore would abort the program due to SIOCGIFADDR ioctl(2) on udpsock_handler Reported by Philip Higgins <phil ! unita.com.au> OK tb@
2016-04-04Hook up ndp -f.Jeremie Courreges-Anglas
Initial diff from Dimitris Papastamos. Support from mikeb@, ok benno@.
2016-04-02Eliminate superfluous 3rd params in fcntl(F_GETFL) calls.Kenneth R Westerback
ttymsg.c doesn't need to include fcntl.h. Tweak standard fd sanitising to be more like the sanitise_stdfd() used elsewhere, though other uses of 'nullfd' make importing sanitise_stdfd() itself unappetizing. Add a die(0) if dup2() fails. suggestions & ok bluhm@
2016-04-02streamline the code that checks meta information before extracting filesMarc Espie
- verify_modes should only verify modes - put the whole checking code in one single routine in validate_meta, makes the size checking code more obvious - document what's going on - prevent PkgCreate from creating impossible packages, only a few Ustar objects are actually usable.
2016-04-02sprinkle spaces to make more obvious which fields we useMarc Espie
2016-04-01Rename the 'faulty' list action to 'failed'; it clearer.Antoine Jacoutot
prodded by matthieu@ ok millert@ jung@ sthen@
2016-03-31For consistency, omit the variable name in rdaemon() prototype.Jeremie Courreges-Anglas
2016-03-31Go in the background much later, to reduce possible silent failures.Jeremie Courreges-Anglas
rev. 1.34 moved the call to daemon() before the chroot, thus hiding errors if the target directory or _tftpd user don't exist. To go in the background later we need to preopen /dev/null. The code is put in a daemon(3) like function that could be used in other daemons. Lack of error reporting spotted by ajacoutot@, initial diff from dlg@. rdaemon() "concept" discussed with semarie@. ok ajacoutot@ dlg@
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-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-29If program cannot reserve memory then the user doesn't need to know exactly howRicardo Mestre
many bytes it couldn't allocate Suggested and OK from natano@ and millert@ also agrees
2016-03-29- Add missing goto in order to avoid a dereference of a null objectRicardo Mestre
- While here remove lint comment OK millert@
2016-03-29-Remove function #defines from defs.h and use the actual code accordingly inRicardo Mestre
user.c -Remove MIN and MAX #defines which are not being in use since the last 16 years -Move last #define to user.c and remove file defs.h -Remove lint comments OK natano@ after his suggestions and also OK jung@ on an earlier version
2016-03-29Properly check for the end of captured packet while printing CDP packets.Can Erkin Acar
ok deraadt@
2016-03-28Remove cast from free(3)Ricardo Mestre
OK gsoares@
2016-03-28Remove handrolled #define FREE and use free(3) directly without wrappingRicardo Mestre
if (ptr!=NULL) around them since they are not needed. OK millert@ and jung@
2016-03-28Remove left-over debug line.Antoine Jacoutot
2016-03-27Compute "action" from the _rc_actions variable.Antoine Jacoutot
2016-03-27Make usage() a bit more user friendly wrt "action" and "lsarg".Antoine Jacoutot
prodded by espie@
2016-03-27Rename session_socket_blockmode() to session_socket_nonblockmode(),Kenneth R Westerback
removing its second parameter and the enum() that provided the values for said parameter. The function was only called with the second parameter set to one value (BM_NONBLOCKING) from the enum(). So just do the right thing. Similar to changes made in smtpd. While here remove the pointless third parameter from the fcntl(F_GETFL) call. No functional change. ok guenther@ bcook@ deraadt@
2016-03-26fix error message, based on a suggestion from doug@, ok espieStuart Henderson
2016-03-25Nuke session_socket_blockmode() and session_socket_linger(). UseKenneth R Westerback
the identical io_set_blocking() and io_set_linger(). Since both are always called to turn off blocking or lingering, nuke the parameter and associated enum in favour of "just doing the right thing". While passing remove the unneeded last parameter to the remaining fcntl(F_GETFL). Finally, rename the functions to io_set_nonblocking() and io_set_nolinger() for clarity. No functional change. Started with a sweep of fcntl() usage inspired by guenther@. ok gilles@
2016-03-23tweak previous;Jason McIntyre
2016-03-23Kill undocumented "pro" command. It's a no-op since the 90s!Martin Pieuchot
2016-03-23Rename 'rtn' to 'error' for coherency.Martin Pieuchot
2016-03-23Remove code to print the never set SIN_PROXY bit. This flag is only usedMartin Pieuchot
to set the 33rd bit of a 32bit address in the routing table. ok millert@
2016-03-22Connected routes are no longer identified by a AF_LINK gateway so adjustClaudio Jeker
dispatch_rtmsg_addr() similar to the way fetchtable() was fixed long ago. This should fix various issues with bad gateways being picked up by bgpd. Problem identified and initial fix provided by phessler@ but commiting my version which is more conservative. OK phessler@
2016-03-22Log the reply message from RADIUS server when the authenticaion fails.YASUOKA Masahiko
Diff from Yuuichi Someya
2016-03-22Cleanup control sockets in control_cleanup().YASUOKA Masahiko
Diff from Yuuichi Someya.
2016-03-22Use SOCK_NONBLOCK in socket() and accept4() instead of a separate fcntl()Kenneth R Westerback
dance. Inspired by guenther@ ok millert@ yasuoka@
2016-03-22tokenadm(8) is already pledged, do the same for tokeninit(8).Alexander Bluhm
- bring comment in both programms in line - tokeninit(8) needs "tty" for readpassphrase(3) - call token_init() after pledge(2) - fix whitespace OK millert@