bin/162189: FreeBSD unzip does not restore file permissions properly

Claude Buisson clbuisson at orange.fr
Mon Oct 31 09:40:09 UTC 2011


>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 at 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 at 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:


More information about the freebsd-bugs mailing list