summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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
2008-12-11- snprintf -> bsnprintfGilles Chehade
2008-12-11- snprintf -> bsnprintfGilles Chehade
2008-12-11- fix a bug that would cause the runner to hit a fatal() when running outGilles Chehade
of luck under load. Long story made short: the runner process opens the queue and sequentially opens each bucket to process messages. If a message is delivered by MDA/MTA after the opendir(), then the queue process will garbage collect the message from the queue and the runner will attempt to opendir() a path that no longer exists. Reported by Daniel Lidberg <daniel.lidberg@gmail.com>, observed by jacekm@ and debugged by me, that's collaborative work ;-)
2008-12-11- document showqueue and showrunqueueGilles Chehade
2008-12-11- missing prototypeGilles Chehade
2008-12-11- bsnprintf() is a wrapper to snprintf() that can be used when we handle anGilles Chehade
encoding error or a truncation the same way. This will turn many of our snprintf() checks into boolean checks.
2008-12-11copying local files may cause some issues, as noticed by sturm@Marc Espie
Try really hard to avoid copying a file on itself: by first checking the stat() results, and if they are not available (since some people use fucked-up stuff like AFS), rely on the file names as a last resort. This should avoid stuff getting copied from PKG_CACHE to PKG_CACHE and erasing itself in a few cases...
2008-12-10convert the aggregator's AS number into host byte order whenStuart Henderson
displayed in "show rib detail". ok claudio@
2008-12-10That the "aliases" and "virtual" maps satisfy m_src == S_DB is checkedJacek Masiulaniec
too late, ie. at alias resolution time, and it's only a log_info. Move the check to parse.y, and make daemon die if m_src != S_DB. ok gilles@
2008-12-10Correctly skip the internal fd when checking the server sockets. Use PFD_MAXClaudio Jeker
to start the for loop and not 1 which was correct long long time ago. OK otto@ found by Anirban Sinha ASinha(at)zeugmasystems.com
2008-12-09update ap_config_auto.h for new libcMartynas Venckus
2008-12-08report memory and swap in hrStorage, and implement hrProcessor to reportReyk Floeter
hrProcessorLoad (where load means the percentage of time the system was not idle during the last minute). based on HOST-RESOURCES-MIB. ok dlg@
2008-12-08change the handling of redirections with the sticky-address option set:Reyk Floeter
instead of flushing the complete source tracking table (sticky addresses) in pf on host state changes, just flush the entries for hosts that have been marked as down in the relayd table. this fixes ugly problems with users loosing their sessions if another host or redirection was going down. ok cloder@
2008-12-07Kill src_node structure. It is mostly redundant with rt_node andMichele Marchetto
adds unneeded complexity. Move any stuff to rt_node structure.
2008-12-07Simplify queue_record_incoming_envelope.Jacek Masiulaniec
ok gilles@
2008-12-07Disable EV_READ when sending IMSG_PARENT_AUTHENTICATE.Jacek Masiulaniec
This is for consistency, code is not reached yet. ok gilles@
2008-12-07Replace evbuffer_add_printf calls with wrapper function, session_respond,Jacek Masiulaniec
which additionally suffixes <CRLF>, and enables EV_WRITE. Remove bufferevent_enable(.., EV_WRITE) from session_command and session_pickup so that EV_WRITE is enabled in exactly one place, session_respond. Change some responses slightly to make code fit 80 columns. ok gilles@
2008-12-07Change example to run /etc/netstart always (secure by default).Ian Darwin
Cluestick courtesy of deraadt@, discussed with todd@, mbalmer@, ok ray@.
2008-12-07- getaddrinfo() uses negative values for its error defines, our use of anGilles Chehade
u_int8_t to hold the value leads to invalid checking in runner_batch_resolved(), this lead to a crash in MTA because we assumed a batch had its mx resolved when it had not. while at it, be more strict about errors we don't know and fatal(), it should not happen. ok jacekm@, ok chl@
2008-12-07- fix function name in fatal()Gilles Chehade
2008-12-07Don't check / reset s->s_msg.datafp where its state is obviously known.Jacek Masiulaniec