Quoting Santiago Vila (2022-01-19 22:56:42) > El 19/1/22 a las 22:53, Johannes Schauer Marin Rodrigues escribió: > > Understood. Then let me scale back the patch a bit more. Now the attached > > patch > > uses /etc/passwd from the outside system and thus uses plain chown calls. > > Please take a look a the version I've just uploaded. > > What I did was to simply replace the function calls back to chown and > chmod, using this script to avoid making mistakes: > > #!/bin/sh > sed -i 's@change_owner@chown@' $1 > sed -i 's@change_mode@chmod@' $1 > > Then I removed the (resulting) chown and chmod functions not required > anymore.
The change_owner function did more than query /etc/passwd. It also prepended $DPKG_ROOT to the path it acted upon. So if you didn't do more than what you described above, then the result is incomplete. I'll send you a new tested patch once your upload reaches my mirror. Thanks! cheers, josch
signature.asc
Description: signature

