Ticket #1341 (new defect)

Opened 3 years ago

pbins don't preserve directory ownership

Reported by: hasufell Owned by:
Priority: Sometime Milestone: pbin support
Component: clients/cave Version: scm
Keywords: Cc:
Blocked By: Blocking:
Distribution: Gentoo

Description

Given the following ebuild:

app-misc/test:

DESCRIPTION="Blah"
SLOT="0"
KEYWORDS="amd64 x86"

src_install() {
  keepdir /var/lib/test_dir_32
  fowners -R 207:207 /var/lib/test_dir_32
}

The resulting pbin tarball will have the following permissions:

Permissions:

# ls -la lib/test_dir_32/
total 8
drwxr-xr-x 2 root    root    4096 Feb 11 16:03 .
drwxr-xr-x 3 root    root    4096 Feb 11 16:03 ..
-rw-r--r-- 1 postfix postfix    0 Feb 11 16:04 .keep_app-misc_test-0

This does not happen if the package is installed straight away, without any pbin support, so I suspect it cannot be a configuration problem.

libarchive version is 3.1.2, the only patch applied is to fix CVE-2013-0211.

Note: See TracTickets for help on using tickets.