summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2014-07-21Switch from <sys/endian.h> or <machine/endian.h> to the new,Philip Guenther
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-07-20Fixed typo in error message.Tobias Stoeckmann
okay deraadt@
2014-07-20Fix tcpdump(8) display of logical link control data in IEEE802 frames.Stefan Sperling
The frame subtype field is in the first byte of frame control but tcpdump(8) was looking at the second byte to determine if this is a data frame. Patch by Nathanael Rensen, thanks!
2014-07-20Fix auto-upgradable files detection.Antoine Jacoutot
from Nathanael Rensen, thanks!
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
2014-07-19actually use the cve match_location correctly.Marc Espie
problem noticed by aja@
2014-07-18fix sorted outputMarc Espie
2014-07-18Fix privsep.c. Call missing imsg_free() after imsg_get(). Also addYASUOKA Masahiko
missing #include <net/if.h> to use IFNAMESIZ and replace some strncmp() by startswith().
2014-07-18Cleanups:Antoine Jacoutot
- links are already ignored when creating the sums - better CVSID match
2014-07-17Move comment about strcasecmp() to a more suitable spot.Stefan Sperling
ok reyk benno
2014-07-17Fix typo in example httpd config which caused error on startup.Stefan Sperling
/etc/httpd.conf:8: failed to add media type ok reyk
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-16Implement file descriptor accounting. The concept was taken fromReyk Floeter
relayd but had to be adjusted for httpd. It now handles single-pass HTTP connections, persistent connections with multiple requests, and body-less HEAD requests. With input from benno@
2014-07-16lynx will go to ports. there are too many reasons for it to go there,Theo de Raadt
and not enough for it to stay. lengthy discussions.
2014-07-15typoAntoine Jacoutot
2014-07-15don't diplay the full path in error messagesReyk Floeter
2014-07-15/var/db/sysmerge -> /usr/share/sysmergeAntoine Jacoutot
ok deraadt@
2014-07-14Track Connection: Keep-AliveReyk Floeter
2014-07-14unhardcode db paths.Marc Espie
put pruning of paths back early: these happen to be in the source db for the most part, so if we auto-detect source first, we lose.
2014-07-14Create a socketpair() and tie one end to /dev/klog using ioctl LIOCSFD.Theo de Raadt
This allows us to receive messages direct from programs using the fd-safe sendsyslog(2), aka. syslog_r(3). Thanks to guenther for this part of the solution. ok beck tedu miod guenther
2014-07-14first step towards keep-alive/persistent connections supportReyk Floeter
2014-07-14When a connection was spliced in one direction and in copy mode inAlexander Bluhm
the other direction, the timeouts did not work. They were longer than specified. Link the splicing and non-splicing timeouts. Found by make run-regress-args-timeout-http.pl OK reyk@
2014-07-13Use lerrx instead of errx since the logging subsystem is already initialized.Claudio Jeker
OK florian@
2014-07-13Some functions need to dup() before sending a socket by imsg and don'tYASUOKA Masahiko
need to close() after sending socket since imsg_compose() closes the passing socket.
2014-07-13remove all crypt choices other than bcrypt. ok afresh1 deraadtTed Unangst
2014-07-13Use errx() after getpwnam() failure since errno may not be set.Claudio Jeker
All other privsep / privdrop daemons do this the same way. OK florian@ some time ago
2014-07-13bye bye src url. Never amounted to much, we went another road a while agoMarc Espie
2014-07-13bundling base + packages was slow, as it needed to find lots of files.Marc Espie
different approach: mark the base system in one go, then hand pick the files from the pkglocatedb. quite a few unaccounted files yet, this will get better
2014-07-13Set KERN_PROC_NOBROADCASTKILL so that iscsid is not killed by initClaudio Jeker
when terminating multi-user so that we have a chance to sync the file systems mounted via iscsi.
2014-07-13When the three possible return values are -1, 0, and 1, != 1 is the sameKenneth R Westerback
as <= 0. And the latter is the normal idiom so use that. ok claudio@ henning@
2014-07-13tedu setlist support, superseded by the new locate dbs.Marc Espie
2014-07-13stuff no longer needed, now that base/x release install its own locate dbsMarc Espie
2014-07-13Remove a debug messageReyk Floeter
2014-07-13Since the event(s) passed to a callback can be a mask of all eventsKenneth R Westerback
of interest and EV_WRITE is or'ed into the interesting events, it is more correct to check both events each time. Pointed out by Claudio. ok henning@ claudio@
2014-07-13Sync file to be identical in relayd(8) and httpd(8).Reyk Floeter
2014-07-13Finish writing the output before closing the connectionReyk Floeter
(adopted from relayd).
2014-07-13Close the connection after the response is completed (no Keepalive yet).Reyk Floeter
2014-07-13Add support for media types (aka. MIME types): the types section isReyk Floeter
compatible to nginx' mime.types file which can be included directly. If not present, use a few built-in defaults for html, css, txt, jpeg, gif, png, and js.
2014-07-13Close connection/remove event handler when msgbuf_write() hits anKenneth R Westerback
EOF. ok jmatthew@ claudio@
2014-07-13Make error messages more obvious to the user.Bob Beck
ok reyk@ florian@
2014-07-13Also ignore examplessum.Antoine Jacoutot
2014-07-13improve log output for relays. adjust regress testsSebastian Benoit
ok reyk
2014-07-13repair matching of headers, add regress test for this errorSebastian Benoit
ok reyk
2014-07-12Use Comic Sans (or Chalkboard) as the default font for HTTP errorReyk Floeter
messages because we love web hipsters. ok beck@
2014-07-12Add httpd(8), an attempt to turn the relayd(8) codebase into a simpleReyk Floeter
web server. It is not finished yet and I just started it today, but the goal is to provide an HTTP server that a) provides minimal features, b) serves static files, c) provides FastCGI support, and d) follows common coding practices of OpenBSD. It will neither support plugins, nor custom memory allocators, EBCDIC support, PCRE or any other things that can be found elsewhere. httpd(8) is not intended to provide a fully-featured replacement for nginx(8) or the Apache, but it will provide enough functionality that is needed in the OpenBSD base system. ok deraadt@
2014-07-12don't check_security on newer *after* making sure the set doesn't haveMarc Espie
errors. Note that the errors are already signaling enough (conflicts, bad package etc)... And not having any errors mean we actually have proper plists. problem noticed by zhuk@
2014-07-12egsum -> examplessumAntoine Jacoutot
2014-07-12zap trailing whitespace;Jason McIntyre
2014-07-12Close connections when msgbuf_write() returns 0.Kenneth R Westerback
ok claudio@
2014-07-12Fix a potential bug. privsep.c didn't check the interface nameYASUOKA Masahiko
correctly if it's pppx.