Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2008 05:04:55 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.bin/tar util.c src/usr.bin/tar/test Makefile test_strip_components.c
Message-ID:  <200811100505.mAA55sw5049040@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kientzle    2008-11-10 05:04:55 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/tar          util.c 
    usr.bin/tar/test     Makefile 
  Added files:
    usr.bin/tar/test     test_strip_components.c 
  Log:
  SVN rev 184807 on 2008-11-10 05:04:55Z by kientzle
  
  Test --strip-components and fix it to actually work.  Jaakko did a
  good job writing this test; it exercises a lot of subtle cases.  The
  trickiest one is that a hardlink to something that didn't get
  extracted should not itself be extracted.  In some sense, this is not
  the desired behavior (we'd rather restore the file), but it's the best
  you can do in a single-pass restore of a tar archive.
  
  The test here should be extended to exercise cpio and newc formats as
  well, since their hardlink models are different, which will lead to
  different handling of some of these edge cases.
  
  Submitted by:   Jaakko Heinonen
  MFC after:      30 days
  
  Revision  Changes    Path
  1.5       +1 -0      src/usr.bin/tar/test/Makefile
  1.1       +77 -0     src/usr.bin/tar/test/test_strip_components.c (new)
  1.21      +37 -15    src/usr.bin/tar/util.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811100505.mAA55sw5049040>