bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] numeric.at vs sudo


From: Jack Howarth
Subject: [Bug-tar] numeric.at vs sudo
Date: Tue, 17 May 2016 11:29:59 -0400

   While testing the new tar 1.29 release on x86_64-apple-darwin15
under the fink packaging system, I noticed a glitch with the
numeric.at test case. The fink packaging system runs under sudo and
that test fails in that case as...

 30: --numeric-owner basic tests                     FAILED (numeric.at:29)

with the testsuite.log in tests/testsuite.dir/030 showing...

#                             -*- compilation -*-
30. numeric.at:18: testing --numeric-owner basic tests ...
./numeric.at:29:
mkdir posix
(cd posix
TEST_TAR_FORMAT=posix
export TEST_TAR_FORMAT
TAR_OPTIONS="-H posix"
export TAR_OPTIONS
rm -rf *

mkdir dir
genfile --file dir/file

MYUID=$(id -u) || exit 77
MYGID=$(id -g) || exit 77
MYUSR=$(id -un) || exit 77
MYGRP=$(id -gn) || exit 77


decho --create
tar --create -vvf a dir --numeric-owner | awk '2=="'"$MYUID/$MYGID"'"
{print "OK"; next} {print}'
tar --create -vvf a dir | awk '2=="'"$MYUSR/$MYGRP"'" {print "OK";
next} {print}'


decho --list
tar --list -vvf a dir --numeric-owner | awk '2=="'"$MYUID/$MYGID"'"
{print "OK"; next} {print}'
tar --list -vvf a dir | awk '2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'


decho --diff
tar --diff -vvf a dir --numeric-owner | awk '2=="'"$MYUID/$MYGID"'"
{print "OK"; next} {print}'
tar --diff -vvf a dir | awk '2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'


decho --extract
tar --extract -vvf a dir --numeric-owner | awk '2=="'"$MYUID/$MYGID"'"
{print "OK"; next} {print}'
tar --extract -vvf a dir | awk '2=="'"$MYUSR/$MYGRP"'" {print "OK";
next} {print}'

)
--- -   2016-05-17 11:25:02.000000000 -0400
+++ /Users/howarth/tar-1.29/tests/testsuite.dir/at-groups/30/stdout
 2016-05-17 11:25:02.000000000 -0400
@@ -1,21 +1,21 @@
 --create
-OK
-OK
-OK
-OK
+drwxr-xr-x 0/20              0 2016-05-17 11:25 dir/
+-rw-r--r-- 0/20              0 2016-05-17 11:25 dir/file
+drwxr-xr-x root/staff        0 2016-05-17 11:25 dir/
+-rw-r--r-- root/staff        0 2016-05-17 11:25 dir/file
 --list
-OK
-OK
-OK
-OK
+drwxr-xr-x 0/20              0 2016-05-17 11:25 dir/
+-rw-r--r-- 0/20              0 2016-05-17 11:25 dir/file
+drwxr-xr-x root/staff        0 2016-05-17 11:25 dir/
+-rw-r--r-- root/staff        0 2016-05-17 11:25 dir/file
 --diff
-OK
-OK
-OK
-OK
+drwxr-xr-x 0/20              0 2016-05-17 11:25 dir/
+-rw-r--r-- 0/20              0 2016-05-17 11:25 dir/file
+drwxr-xr-x root/staff        0 2016-05-17 11:25 dir/
+-rw-r--r-- root/staff        0 2016-05-17 11:25 dir/file
 --extract
-OK
-OK
-OK
-OK
+drwxr-xr-x 0/20              0 2016-05-17 11:25 dir/
+-rw-r--r-- 0/20              0 2016-05-17 11:25 dir/file
+drwxr-xr-x root/staff        0 2016-05-17 11:25 dir/
+-rw-r--r-- root/staff        0 2016-05-17 11:25 dir/file

30. numeric.at:18: 30. --numeric-owner basic tests (numeric.at:18):
FAILED (numeric.at:29)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]