Date: Mon, 31 Oct 2011 09:36:23 GMT From: Claude Buisson <clbuisson@orange.fr> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/162189: FreeBSD unzip does not restore file permissions properly Message-ID: <201110310936.p9V9aNnA064122@red.freebsd.org> Resent-Message-ID: <201110310940.p9V9e8VB072716@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110310936.p9V9aNnA064122>