From nobody@FreeBSD.org  Mon Oct 31 09:36:23 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DA9AE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Oct 2011 09:36:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id CA9248FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Oct 2011 09:36:23 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9V9aNMk064123
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Oct 2011 09:36:23 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p9V9aNnA064122;
	Mon, 31 Oct 2011 09:36:23 GMT
	(envelope-from nobody)
Message-Id: <201110310936.p9V9aNnA064122@red.freebsd.org>
Date: Mon, 31 Oct 2011 09:36:23 GMT
From: Claude Buisson <clbuisson@orange.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD unzip does not restore file permissions properly
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162189
>Category:       bin
>Synopsis:       FreeBSD unzip does not restore file permissions properly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kientzle
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 31 09:40:08 UTC 2011
>Closed-Date:    
>Last-Modified:  Thu Nov 17 04:55:28 UTC 2011
>Originator:     Claude Buisson
>Release:        FreeBSD 9.0-BETA3, 9.0-CURRENT
>Organization:
>Environment:
FreeBSD 9.0-BETA3 #0: Mon Sep 26 17:07:05 CEST 2011
    toor@inspiron:/usr/obj/home/src/sys/INSPIRON9X i386 (r225744)
FreeBSD zorglub 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Tue Aug 16 17:35:32 CEST 2011     toor@zorglub:/usr/obj/home/src/sys/ZORGLUB  amd64 (r224294)

>Description:
When unzipping an archive, the file permissions are not restored properly (but they are by unzip from ports). More precisely the execute bit seems to be set
unconditionnally for non executable files.
>How-To-Repeat:
create a zip archive, unzip it and compare.
>Fix:
use the following workarounds:

1- delete the /usr/sbin/unzip executable.
or

2- create an alias and modify shells/perl/.. scripts to force use of port unzip.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: kientzle 
Responsible-Changed-When: Thu Nov 17 04:54:55 UTC 2011 
Responsible-Changed-Why:  
This is a libarchive issue. 

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