NetBSD-Bugs archive

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

Re: bin/35257: tar(1) opens excluded files



The following reply was made to PR bin/35257; it has been noted by GNATS.

From: gson%gson.org@localhost (Andreas Gustafsson)
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/35257: tar(1) opens excluded files
Date: Wed, 9 Jan 2008 16:36:38 +0200

 The problem I reported in bin/35257 is back, or perhaps it was never
 completely fixed.  For example, running the following as root on 4.99.48:
 
     mkdir -p test/emul/linux/proc
     mount -t procfs -o linux procfs test/emul/linux/proc
     echo "./emul/linux" >excludes
     ( cd test && tar --exclude-from ../excludes -c -f - . | tar tfv - )
     umount test/emul/linux/proc
 
 yields the error message
 
     tar: Unable to read symlink ./emul/linux/proc/443/fd/8 (No such file or 
directory)
 
 Running ktrace on the tar process shows that in addition to the failed
 readlink() call evident from the error message, many other excluded
 files are being passed to readlink() or open(), but those don't cause
 additional error messages as the calls are successful.
 -- 
 Andreas Gustafsson, gson%gson.org@localhost
 



Home | Main Index | Thread Index | Old Index