Bug#235623: dpkg: -x changes target directory's permission
On Tue, 2 Mar 2004, Carlos Z.F. Liu wrote:
> When I use "dpkg -x one_pkg_name.deb target_dir" to extract the deb
> file, the program always changed the target_dir's permission to
> drwxr-xr-x whatever the original permission is.
This is because dpkg -x doesn't use the internal tar, but forks external tar.
This could be fixed by:
1) Using internal tar(difficult, it's not meant to be used that way).
2) Pass additional args to the external tar.
3) Wait for dpkg 2.0, which will have a rewritten archive library, that'll
make this kind of thing trivial.