summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2008-12-19fix IF-MIB element and implementation ifInUnknownErrors -> ifInUnknownProtosReyk Floeter
2008-12-19fix indentation, no binary change.Jacek Masiulaniec
2008-12-19- fatal() if flock() has failed for any reason that's not EWOULDBLOCK, thisGilles Chehade
is not supposed to happen but better safe than sorry. suggested by jacekm@ - while at it, remove the locking of delivery file we create when doing a Maildir delivery. the purpose of Maildir is to prevent the need for locking in the first place ... I must have been tired that day.
2008-12-19- smtpd handled mbox locking failures as "regular" temporary failures whichGilles Chehade
is not good at all. As a result, under heavy load messages would be kept in queue, and delayed for hours just because we failed locking a few times. This commit makes smtpd distinguish between lock fails and "regular" temporary fails. - delivery scheduler will reschedule immediately a message that couldn't be delivered because of a lock fail. If we fail to lock too many times we fallback to previous "delay increase" logic. "looks sane" jacekm@
2008-12-18Introduce safe_fclose, which tries to push file to the disk asJacek Masiulaniec
quickly as possible; it fails under temporary error conditions, letting caller react appropriately. ok gilles@
2008-12-18Declarations for functions used only in smtp_session.c were movedJacek Masiulaniec
to that file from smtpd.h. ok gilles@
2008-12-18Check fwrite return code at DATA stage.Jacek Masiulaniec
Add basic line length checking, as required by rfc. It is no longer required to disable EV_READ upon evbuffer_readline failure. ok gilles@
2008-12-18- condition lists is wrongly described, unbreak the following syntax:Gilles Chehade
"accept for { domain "foo", domain "bar" } ..." From Nicholas Mariott <nicholas.marriott@gmail.com>
2008-12-18Instead of directly applying ntoh*() to fields of the capturedHans-Joerg Hoexer
packet and thus modifying it use local varialbes instead. Otherwise, hexdumping packets shows corrupted data. ok markus@ some time ago
2008-12-18Don't err() on blank lines.Jacek Masiulaniec
ok gilles@
2008-12-18Cleanup /incoming before handling each MAIL FROM.Jacek Masiulaniec
Improve cleanup condition to cover more cases. ok gilles@
2008-12-17Warn if empty map is being created; this catches at least usageJacek Masiulaniec
error such as "makemap foo.db". ok gilles@
2008-12-17Merge newaliases into makemap.Jacek Masiulaniec
ok gilles@
2008-12-17typoMiod Vallat
2008-12-17Introduce /purge, where all msgs scheduled for deletion are put byJacek Masiulaniec
queue, and removed from disk by runner. On startup, clean /incoming by moving msgs within it to /purge. ok gilles@
2008-12-17sort;Jason McIntyre
2008-12-17Add a workaround for some crazyness that happens if a cloning route has aClaudio Jeker
low priority gateway route below itself plus a carp interface on the same network. The result is that some arp entries can't be added. This is a bandaid that will give me time to figure out the real bug.
2008-12-17Add support for demotion counter.Michele Marchetto
When interfaces go up/down the demotion counter of the specified group is decreased/increased. ok henning@
2008-12-17more on editors; ok ajacoutotJason McIntyre
2008-12-16- make it possible to edit a merged file using an external editor ;Antoine Jacoutot
useful when 'sdiff eb' does not cope with one's needs. idea and input from weerd@ ok weerd@ sthen@
2008-12-16strptime() never sets tm_isdst, so set it to -1 before passing thePhilip Guenthe
struct tm to mktime() so that the calculation will follow the local DST rules ok millert@ otto@
2008-12-15tweak the defaults to also do -M if you ask for info on a given package.Marc Espie
2008-12-15Cleanup the temporary directory in all the error paths.Federico G. Schwindt
ajacoutot@ ok.
2008-12-14Files under /incoming don't need flock(2)ing anymore.Jacek Masiulaniec
ok gilles@
2008-12-14O_TRUNC is redundant if O_EXCL is specified.Jacek Masiulaniec
ok gilles@
2008-12-14O_TRUNC is redundant if O_EXCL is specified.Jacek Masiulaniec
ok gilles@
2008-12-14queue_create_incoming_layout must return 0 on failure, not -1.Jacek Masiulaniec
ok gilles@
2008-12-14display message is +DISPLAY; from Ingo SchwarzeJason McIntyre
ok espie
2008-12-13IMSG_* namespace cleanup.Jacek Masiulaniec
ok gilles@
2008-12-13Detect alias duplicates.Jacek Masiulaniec
ok gilles@
2008-12-13Fix few parsing bugs in parse_entry, most severe of which wasJacek Masiulaniec
segv on lines consisting exclusively of whitespace. ok gilles@
2008-12-13Simplify parse_entry; streamline the code to call db->put in oneJacek Masiulaniec
place, regardless of number of preexisting aliases. Don't call db->sync; it's covered by db->close shortly before rename. ok chl@ gilles@
2008-12-13If parse_aliases fails, don't warn about syntax errors; it may failJacek Masiulaniec
for other reasons. Never exit outside main; we need to return to main to clean the temp file. Check parse_entry return code; otherwise $? == 0 even when invalid entries were found. ok gilles@
2008-12-13Use mkstemp instead of mkdtemp; also, add more X's.Jacek Masiulaniec
Do chmod before rename to eliminate short time window when aliases.db is "official" but not readable. Use PATH_ALIASESDB instead of hardcoding "/etc/mail/.." Check db->close return code. ok gilles@ henning@
2008-12-13- Correct usage text.Jacek Masiulaniec
- Drop static qualifiers. - Drop unused -d switch. - Use 0/1 exit codes instead of <sysexits.h> defines. ok gilles@
2008-12-13Declare alias_parse in smtpd.h, and fix callers that pass it wrongJacek Masiulaniec
number of arguments. ok gilles@
2008-12-12Make bgpctl priority aware.Claudio Jeker
2008-12-12Make bgpd route priority aware and while there sync in the basics to correctlyClaudio Jeker
track multipath routes. Code is mostly stolen from similar fixes to ospfd but a bit different as this kroute.c implementation is more complex because of additional task (nexthop verification for example). This change and the similar ospfd change were desperatly needed on larger complex network setups which tended to end up in situation where the kernel had a different oppinion about routing than the daemon. Now the situation should be a lot better. Tested and OK sthen@ gollo@
2008-12-12ospfd knows now priorities so let ospfctl know and print them as well.Claudio Jeker
2008-12-12Make the kroute code routing priority aware. This solves a few issues andClaudio Jeker
makes to code simpler. While the routing table is somewhat simpler the redistribution code does not allow a much more radical approach. With some additional help of Mr. Kernel and his rtsock it should be possible to rip even more code out of kroute.c. Tested and OK sthen@, gollo@
2008-12-12Use rtm_hdrlen to jump over the message header and to the beginning of theClaudio Jeker
sockaddrs included in the message. This makes the code more robust when kernel and userland are out of sync. put it in deraadt@
2008-12-12Format string checking for bsnprintf.Jacek Masiulaniec
ok gilles@
2008-12-12Kill references to smtpdb(8).Jacek Masiulaniec
ok gilles@
2008-12-12Correctly set the partial bit on the AS4_PATH and AS4_AGGREGATOR attribute.Claudio Jeker
Per RFC4271 the partial bit must be set if the attribute was not generated on the originating router. This is mostly cosmetics. OK sthen@
2008-12-12Follow RFC 4271 more closely by sending the correct error back for optionalClaudio Jeker
attributes and use the correct lenght in some other error cases. OK sthen@
2008-12-11- last snprintf -> bsnprintfGilles Chehade
2008-12-11- snprintf -> bsnprintfGilles Chehade
2008-12-11- snprintf -> bsnprintfGilles Chehade
2008-12-11- snprintf -> bsnprintfGilles Chehade
2008-12-11- snprintf -> bsnprintfGilles Chehade
- makemap and newaliases need util.c now