From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 31 09:40:09 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A5D8106564A for ; Mon, 31 Oct 2011 09:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 279E98FC13 for ; Mon, 31 Oct 2011 09:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9V9e90u072717 for ; Mon, 31 Oct 2011 09:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9V9e8VB072716; Mon, 31 Oct 2011 09:40:09 GMT (envelope-from gnats) Resent-Date: Mon, 31 Oct 2011 09:40:09 GMT Resent-Message-Id: <201110310940.p9V9e8VB072716@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Claude Buisson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA9AE106564A for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/162189: FreeBSD unzip does not restore file permissions properly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 09:40:09 -0000 >Number: 162189 >Category: bin >Synopsis: FreeBSD unzip does not restore file permissions properly >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >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: >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: >Unformatted: