Package: fai-client
Version: 4.2.2
Severity: normal

hello -

i recently ran into an issue while trying to deploy ubuntu 14.04 vms.
/var/log's group ownership has been changed to the syslog group. however, 
this group does not have a pre-defined gid.  the result is that in the 
dirinstall case /var/log comes out of fai w/its group owner set to the 
syslog gid of the host system (which may differ from that in the
tarball).

this would appear to be a general situation that could arise whenever
there is a user/group in the basefile that does not have a pre-defined
uid/gid. for my usage (focused on initial installs) changing ftar to use
tar's --numeric-owner was the fix.

the attached trivial patch makes this change.  are there use cases
where it is not appropriate?

thank you.

        andy

-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-0.bpo.2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fai-client depends on:
ii  debconf-utils    1.5.49
ii  file             5.11-2+deb7u3
ii  iproute          20120521-3+b3
ii  libapt-pkg-perl  0.1.26+b1
ii  perl             5.14.2-21+deb7u1

Versions of packages fai-client recommends:
ii  libgraph-perl  1:0.91-1

Versions of packages fai-client suggests:
pn  logtail  <none>

-- no debconf information
--- ./bin/ftar.orig	2012-04-11 05:06:25.000000000 -0700
+++ ./bin/ftar	2014-08-25 11:19:41.936082615 -0700
@@ -54,7 +54,7 @@
     fi
 
     echo "ftar: extracting $file to $target/$dir" | tr -s '/'
-    $catname $file | tar -C $target/$dir $vflag -xf -
+    $catname $file | tar -C $target/$dir $vflag --numeric-owner -xf -
     tardone=1
     # if option -1 is set, only one class will be used
     [ $single -eq 1 ] && exit 0

Reply via email to