bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] [GNU tar 1.28] testsuite: 95 failed


From: Sylvain Etienne
Subject: [Bug-tar] [GNU tar 1.28] testsuite: 95 failed
Date: Sun, 1 Nov 2015 17:08:02 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hello tarchivers,
test 95 "filename normalization" (incr08.at) fails with tar-1.28 (see
attachment testsuite.log).
There are 3 additional lines in the stdout compared to the expected
result:
  ./
  ./subdir/
  ./subdir/dir1/
  ABSPATH/
 +ABSPATH/foo/
 +ABSPATH/foo/subdir/
 +ABSPATH/foo/subdir/dir1/
  ABSPATH/subdir/
  ABSPATH/subdir/dir2/

After searching, I found that the reason was I built tar from a directory
"tar-src" symlinked to "tar-1.28" and the function normalize_filename()
doesn't return the same path if the same directory is absolute or relative.

For the relative directories:
 .
 ./subdir
 ./subdir/dir1
normalize_filename() returns:
 /home/seti/source/tar-1.28/tests/testsuite.dir/095/gnu/tartest/foo
 /home/seti/source/tar-1.28/tests/testsuite.dir/095/gnu/tartest/foo/subdir
 /home/seti/source/tar-1.28/tests/testsuite.dir/095/gnu/tartest/foo/subdir/dir1
Whereas the following absolute directories are left unchanged:
 /home/seti/source/tar-src/tests/testsuite.dir/095/gnu/tartest/foo
 /home/seti/source/tar-src/tests/testsuite.dir/095/gnu/tartest/foo/subdir
 /home/seti/source/tar-src/tests/testsuite.dir/095/gnu/tartest/foo/subdir/dir1


In the testsuite.log stderr output, there is an additional line compared
to the expected result:
  tar: ./subdir: Directory is new
  tar: ./subdir/dir1: Directory is new
  tar: ABSPATH: Directory is new
 +tar: ABSPATH/foo: Directory has been renamed from '.'
  tar: ABSPATH/subdir: Directory is new
  tar: ABSPATH/subdir/dir2: Directory is new
  tar: Removing leading `/' from member names
      
I think it is related to the normalize_filename() too but I didn't dig
more.

Sylvain.

Attachment: testsuite.log
Description: Text document


reply via email to

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