On Tue, 08 Jun 2021 14:08:46 +0200 Marc Haber <mh+debian-packa...@zugschlus.de> wrote: > dpkg-deb -x package.deb happily overwrites symlinks on the filesystems > with directories. I don't know whether this is desired behavior. > > tl;dr: > For some reason, a system of mine ended up without > /sbin/start-stop-daemon. Not knowing about dpkg --force-bad-path, I was > unable to use dpkg to repair dpkg because dpkg refuses work if there is > no /sbin/start-stop-daemon. > > dpkg-deb -x /var/cache/apt/archives/dpkg*.deb / happily replaced the > /sbin => /usr/sbin with an /sbin directory containing only > /sbin/start-stop-daemon. > > Wouldn't it be nicer to have dpkg follow symlinks before creating > directories in the times of usrmerge? > > Severity: minor because dpkg --force-bad-path --install dpkg*.deb works.
you can also use: dpkg-deb --fsys-tarfile dpkg*.deb | tar -C / --keep-directory-symlink --extract --file - Thanks! cheers, josch
signature.asc
Description: signature