On Sun, Feb 14, 2021 at 09:46:32AM -0700, Theo de Raadt wrote: > Sure. > > I guess the next thing to do would be using gzopen type functions, > to edit a gzip'd version of the file.
I am unsure it would be doable in sane manner. rdsetroot is using libelf to do elf manipulation, and the read-write support is using a plain file descriptor. and adding support of gz in libelf is a no for me. gunzip the file before manipulation isn't a big deal. > Then the recent move to .gz files would be more transparent for this > specific use case (which I think is very rare, honestly). I'm not sure > if it matters. I would not say it is rare, but I agree that it isn't a common use case. I recently asked on ports@ about withdraw upobsd tool I wrote (we have sysupgrade in base now which do upgrade better than my tool), and I got several replies from people using it for unattented installation. Thanks. -- Sebastien Marie
