[Top][All Lists]

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

[Bug-tar] tar-1.25: test 39 fails on FreeBSD

From: Christian Weisgerber
Subject: [Bug-tar] tar-1.25: test 39 fails on FreeBSD
Date: Mon, 22 Nov 2010 22:05:49 +0100
User-agent: Mutt/

On FreeBSD 7.3, test #39 "extract over symlinks" fails.  Specifically,
it's this snippet of extrac13

  ln -s target1 dst2/file1
  echo target1 >dst2/target1
  tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp

that errors out:

  tar: ./file1: Cannot open: Too many links

ktrace shows that an open() call with O_NOFOLLOW set fails...

 44351 tar      CALL  
 44351 tar      NAMI  "./file1"
 44351 tar      RET   open -1 errno 31 Too many links

... and tar proceeds to the error message.  This open() behavior
is expected, so I'm unclear what GNU tar expects.

I compared with OpenBSD, where this test doesn't fail, and ktrace there
shows a sequence
  open("./file1", ...) => ELOOP
  lstat("./file1", ...)
  open("./file1", ...) => success

Christian "naddy" Weisgerber                          address@hidden

reply via email to

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