summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2007-05-28lift up more of the dev checking code into Vstat.Marc Espie
un-special case SpecialFiles on deletion. Now that CONTENTS is part of the plist, it's checked as well on addition.
2007-05-28oops, can't copy CONTENTS twiceMarc Espie
2007-05-28always create packing-lists with a `contents' entry.Marc Espie
2007-05-28split off handle creation (for added packages) into its own routine.Marc Espie
2007-05-28clean up packing-list validation, call the methods `prepare_for_addition'Marc Espie
and `prepare_for_deletion', that's clearer...
2007-05-28Reflect recent hoststated changes into hoststatectlPierre-Yves Ritschard
This unbreaks the tree. Fixed from the depth of the OpenBSD lair.
2007-05-27so save_old_libs becomes the first routine to handle full UpdateSets.Marc Espie
2007-05-27oops, save_old_libs is now set dependent, we no longer store old packagesMarc Espie
in the same location.
2007-05-27move computation of header to a separate function.Marc Espie
slightly more precise comment
2007-05-27move packing-list validation to the UpdateSet level.Marc Espie
2007-05-27comment out some of this code. Currently, we don't know how to recoverMarc Espie
from collision with old libs (and the result from figure_out_old_libs says so), so don't pretend we're doing anything significant with them...
2007-05-27group packing-list validation for replaced packages with added one.Marc Espie
2007-05-27Second step towards hoststated reload:Pierre-Yves Ritschard
First split out hosts, tables and services into to structs, one that contains the runtime fields and one (inside the runtime) that contains mostly static fields that will be sent over the socket during reload. Also move the demoted field of tables inside the flags field as its just a boolean. ok reyk@
2007-05-27use macros from sys/queue.hPierre-Yves Ritschard
ok otto@
2007-05-27allow to specify table templates in the configuration file and toReyk Floeter
inherit them from multiple services or relays. this is useful if you want to use a table with the same list of hosts but different ports as specified in the relay or service section. this makes mcbride more happy ok pyr@
2007-05-27initialize pfx->pfx_maxlen too, rotting in my tree for some timeHenning Brauer
2007-05-27Additional truncation checks, mostly from tcpdump.org,Can Erkin Acar
and remove some unused hlen assignments found by lint from Stuart Henderson, reviewed by me, ok henning@ claudio@
2007-05-27rename $state->{replace} to $state->{allow_replacing}, which matches intentMarc Espie
better...
2007-05-27errors can now be a local variableMarc Espie
2007-05-27Simplify the mess that deals with alaready installed packages.Marc Espie
We can now have one central point that deals with it.
2007-05-27store replaced packages inside the UpdateSet directly.Marc Espie
2007-05-27depend more stuff off handle.Marc Espie
Introduce UpdateSet, finally, with a main handle.
2007-05-27finish converting most things in pkg_add to the `handle' form, soMarc Espie
we no longer stash anything inside locations.
2007-05-27move the dependency solver up to the handleMarc Espie
2007-05-27tweaks; ok uweJason McIntyre
2007-05-26pass more handle throughMarc Espie
2007-05-26simplify error logic a bit more, always let prepare_to_add return aMarc Espie
handle. Also kill very old @exec tests.
2007-05-26link mount_vnd to the build, and remove usr.sbin/vnconfig, which is nowAlexander von Gernler
completely contained at the new place. provide a legacy link to /usr/sbin to go away after next release. ok deraadt@
2007-05-26use __packed structs for the on-the-wire packets and just memcpy at onceHenning Brauer
instead of kind-of manual copyin/out. increases accuracy in server mode. collecting dust in my tree for some time, result of a conversation with somebody i really want to give credit to, but I can't find the mails now :( okey dokey sez theo
2007-05-26first steps for implementing reload:Pierre-Yves Ritschard
* make parse_config allocate the hoststated function by itself * make as many sockets as necessary to talk to the relay children * add send_all for talking to all children with advise and ok reyk@
2007-05-26Rewrite the sdio(8) tool so that it can send arbitrary MMC commands.Uwe Stuehler
2007-05-26oops, fix: pass handle instead of location to can_install.Marc Espie
Ditch the modifications of global $errors.
2007-05-26base tests on $handle->has_error instead of $errors.Marc Espie
2007-05-26give a more descriptive name to function, we're past abreviationsMarc Espie
2007-05-26More comment typos from Diego Casati. Including winners like funtion, allmost,Kenneth R Westerback
oustside, seqencer, toghether, nessissary, etc.
2007-05-25until people finally fix their @group issues in packages, at least refuseMarc Espie
flat-out to write packages with no @group annotations on fishy stuff (writable directories, setuid/setgid stuff)
2007-05-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-05-25Check fdopen() return value.Todd C. Miller
Ignore SIG_PIPE when writing to sendmail. This allows cron to still run jobs when sendmail is missing or broken (a warning will be logged). Move mailto variable to the same scope as mail and use the mail variable, not mailto, to test whether we have an open pipe to the mailer.
2007-05-25Pass the handle to can_install, so that it can fill in errors (the packageMarc Espie
location is actually not used by this routine).
2007-05-25start cleaning up the mess that is error-handling when installing packages.Marc Espie
Mid-Term, we want to manipulate true `handles' that encapsulate package locations. For now, we create this handle externally, and just use it to record errors, in duplicate... Once handles are ready, they should be agregated into UpdateSets, to make replacement of packages more explicit and flexible.
2007-05-25move the mode checker code from pkg_create into ArcCheck, so that pkg_addMarc Espie
can reuse it.
2007-05-25also rename this one for further wrappingMarc Espie
2007-05-25rename `handle' to `location' in preparation for wrapping it in aMarc Espie
proper `handle'.
2007-05-24place holder for signature checkingMarc Espie
2007-05-24catch up and rethrow Packing-List read issues with the filename whenMarc Espie
available.
2007-05-23fiddle with SharedLibs name, put common code into a common place inMarc Espie
pkg_add.
2007-05-23use autovivifyMarc Espie
2007-05-22Rework the way how ospfd fetches and tracks interfaces. Try to merge theClaudio Jeker
code which is very similar and especially include RTM_NEWADDR in dispatch_rtmsg(). With this newly created interfaces will no longer cause config reload problems. OK norby@
2007-05-22remove duplicate -M entry from set_usage(); ok espieJason McIntyre
2007-05-22Only try to merge a AS_SEQUENCE if there is a difference between the 4-byteClaudio Jeker
AS path and the 2-byte version. If both pathes have the same length don't try to merge them instead use the new path. Issue reported by Jon Morby and further analysed by Stuart Henderson. Tested by Stuart Henderson.