NetBSD Problem Report #50496

From www@NetBSD.org  Thu Dec  3 19:05:27 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8BF0CA64E1
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  3 Dec 2015 19:05:27 +0000 (UTC)
Message-Id: <20151203190526.9A144A6553@mollari.NetBSD.org>
Date: Thu,  3 Dec 2015 19:05:26 +0000 (UTC)
From: ak@freebsd.org
Reply-To: ak@freebsd.org
To: gnats-bugs@NetBSD.org
Subject: teach unzip to extract symlinks
X-Send-Pr-Version: www-1.0

>Number:         50496
>Category:       bin
>Synopsis:       teach unzip to extract symlinks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 03 19:10:00 +0000 2015
>Closed-Date:    Fri Dec 04 19:07:02 +0000 2015
>Last-Modified:  Fri Dec 04 19:07:02 +0000 2015
>Originator:     Alex Kozlov
>Release:        
>Organization:
>Environment:
>Description:
Add ability to extract symlinks from zip archives.
>How-To-Repeat:

>Fix:
Apply the patch: https://freebsd.org/~ak/patch-netbsd-unzip-symlinks.txt

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50496 CVS commit: src/usr.bin/unzip
Date: Thu, 3 Dec 2015 15:00:12 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Thu Dec  3 20:00:12 UTC 2015

 Modified Files:
 	src/usr.bin/unzip: unzip.c

 Log Message:
 PR/50496: Alex Kozlov: teach unzip to extract symlinks

 Our libarchive does not handle symliks yet, but later versions do.
 Set mode and times for symlinks. Finally handle hardlinks for
 completion although they are not handled yet by librarchive.


 To generate a diff of this commit:
 cvs rdiff -u -r1.19 -r1.20 src/usr.bin/unzip/unzip.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Alex Kozlov <ak@freebsd.org>
To: Christos Zoulas <christos@netbsd.org>, gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/50496 CVS commit: src/usr.bin/unzip
Date: Thu, 3 Dec 2015 23:05:39 +0200

 On Thu, Dec 03, 2015 at 08:05:00PM +0000, Christos Zoulas wrote:
 > 
 >  Our libarchive does not handle symliks yet, but later versions do.
 >  Set mode and times for symlinks. Finally handle hardlinks for
 >  completion although they are not handled yet by librarchive.
 AFAIK, even info-zip/unzip doesn't handle hardlinks.
 There is some vague mentioning in 'UNIX Extra Field' section of
 pkware's appnote.txt though.


 -- 
 Alex

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	ak@freebsd.org
Cc: 
Subject: Re: PR/50496 CVS commit: src/usr.bin/unzip
Date: Thu, 3 Dec 2015 17:27:03 -0500

 On Dec 3, 10:20pm, ak@freebsd.org (Alex Kozlov) wrote:
 -- Subject: Re: PR/50496 CVS commit: src/usr.bin/unzip

 |  AFAIK, even info-zip/unzip doesn't handle hardlinks.
 |  There is some vague mentioning in 'UNIX Extra Field' section of
 |  pkware's appnote.txt though.

 Thanks, I know; I was using at the file creation handling of the tar example
 client and I thought, why not? When/if they do it will just work.

 christos

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 04 Dec 2015 19:07:02 +0000
State-Changed-Why:
committed, thanks!
\


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.