Bug 847880 - tar-out should allow (or force) --numeric-owner
Summary: tar-out should allow (or force) --numeric-owner
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-13 21:54 UTC by Andy Lutomirski
Modified: 2012-08-14 16:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-14 16:56:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Andy Lutomirski 2012-08-13 21:54:51 UTC
tar-out uses human-readable owners, which is unfortunate if the user of the resulting tarball has a different /etc/passwd than the guest.

Comment 1 Richard W.M. Jones 2012-08-13 21:59:36 UTC
Implementation notes:

Since commit 98757e151ae8ad8d334f028690abcc85b91c73e5
it has been possible to promote non-optargs functions (like
guestfs_tar_out) by adding optional arguments.  So (in
libguestfs >= 1.19.19) it should be easy to add optional
arguments to the guestfs_tar_out call, encoding this and
other flags.

Another one mentioned was --exclude= (bug 847881).  A single
exclude parameter could be modelled as an OString in the
generator, but that wouldn't be very useful since you could
only use it once.  It's probably better to add OStringList
and do this properly.

Comment 2 Richard W.M. Jones 2012-08-14 14:51:58 UTC
Patches posted:
https://www.redhat.com/archives/libguestfs/2012-August/msg00054.html

Comment 3 Richard W.M. Jones 2012-08-14 16:56:40 UTC
I pushed a less broken version of this patch upstream
in libguestfs 1.19.30.


Note You need to log in before you can comment on or make changes to this bug.