From kvs@binarysolutions.dk  Tue Aug 29 19:55:46 2006
Return-Path: <kvs@binarysolutions.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ABD9616A4DD
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Aug 2006 19:55:46 +0000 (UTC)
	(envelope-from kvs@binarysolutions.dk)
Received: from ns2.pil.dk (ns2.pil.dk [195.41.47.38])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5945643D46
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Aug 2006 19:55:46 +0000 (GMT)
	(envelope-from kvs@binarysolutions.dk)
Received: from donkey.binarysolutions.dk (naboo.binarysolutions.dk [80.196.17.173])
	by ns2.pil.dk (Postfix) with ESMTP id CC3517BA360;
	Tue, 29 Aug 2006 21:55:44 +0200 (CEST)
Received: by donkey.binarysolutions.dk (Postfix, from userid 1001)
	id 8D468621B; Tue, 29 Aug 2006 21:55:35 +0200 (CEST)
Message-Id: <20060829195535.8D468621B@donkey.binarysolutions.dk>
Date: Tue, 29 Aug 2006 21:55:35 +0200 (CEST)
From: Kenneth Vestergaard Schmidt <kvs@pil.dk>
Reply-To: Kenneth Vestergaard Schmidt <kvs@pil.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc: kvs@pil.dk
Subject: libarchive follows symlinks when setting flags
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         102661
>Category:       bin
>Synopsis:       [libarchive] libarchive follows symlinks when setting flags
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 29 20:00:36 GMT 2006
>Closed-Date:    Sun May 20 18:32:05 GMT 2007
>Last-Modified:  Sun May 20 18:32:05 GMT 2007
>Originator:     Kenneth Vestergaard Schmidt
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD donkey.binarysolutions.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Aug 26 03:20:52 CEST 2006 root@donkey.binarysolutions.dk:/usr/obj/usr/src/sys/X30 i386


>Description:
	A warning would be produced when extracting symlinks, where
	st->st_flags is non-zero. This became a problem when creating
	ports-packages in a unionfs-mounted directory, since the 'opaque'
	flag is set on especially symlinks in /usr/local/lib/
>How-To-Repeat:
	Set a flag on a symlink, create a tarball containing that symlink, and
	extract.

	Theoretically, this might be used to set/clear flags on the symlink-
	target, which could pose a problem.

>Fix:
	We've added a one-line patch to use lstat instead of stat in set_fflags(),
	but it might also be better to be able to skip flags in tar, or possibly
	ignore the opaque-flag.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Aug 29 20:20:36 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102661 
State-Changed-From-To: open->closed 
State-Changed-By: kientzle 
State-Changed-When: Sun May 20 18:31:13 UTC 2007 
State-Changed-Why:  
Fixed in -CURRENT by libarchive 2 import. 
Fixed in 6-STABLE by archive_read_extract.c 1.41.2.5 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102661 
>Unformatted:
