NetBSD Problem Report #29221
From socrtp@soclab.eu.org Fri Feb 4 03:21:03 2005
Return-Path: <socrtp@soclab.eu.org>
Received: from sedez.iq.pl (sedez.iq.pl [153.19.101.249])
by narn.netbsd.org (Postfix) with ESMTP id D94C563B400
for <gnats-bugs@gnats.NetBSD.org>; Fri, 4 Feb 2005 03:21:01 +0000 (UTC)
Message-Id: <20050204032030.GA29128@s>
Date: Fri, 4 Feb 2005 04:20:30 +0100
From: Piotr Stolc <socrtp@soclab.eu.org>
To: gnats-bugs@netbsd.org
Subject: pkg_install from 2004Q4 doesn't preserve file modes from binary packages
>Number: 29221
>Category: pkg
>Synopsis: pkg_install from 2004Q4 doesn't preserve file modes from binary packages
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: agc
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 04 03:22:00 +0000 2005
>Closed-Date: Fri Apr 01 19:57:04 +0000 2005
>Last-Modified: Fri Apr 01 19:57:04 +0000 2005
>Originator: Piotr Stolc
>Release: NetBSD 2.0.1
>Organization:
soclab
>Environment:
System: NetBSD s 2.0.1 NetBSD 2.0.1 (S) #2: Tue Jan 25 03:44:17 CET 2005 build@s:/build/src/sys/arch/i386/compile/S i386
Architecture: i386
Machine: i386
>Description:
pkg_add from pkgtools/pkg_install (20041209) doesn't preserve file modes
when installing from binary packages. This bug was fixed in -current pkgsrc
at 7/01/05, but it still exist in stable pkgsrc branch.
>How-To-Repeat:
pkg_add postfix[...].tgz
ls -l /usr/pkg/sbin/postqueue
>Fix:
upgrade to pkg_install from -current (20050106) or use this patch:
--- ftpio.c~ 2005-02-03 22:39:46.000000000 +0100
+++ ftpio.c 2005-02-03 22:39:45.000000000 +0100
@@ -1238,7 +1238,7 @@
errx(EXIT_FAILURE, "don't know how to decompress %s, sorry", pkg);
/* yes, this is gross, but needed for borken ftp(1) */
- (void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s; " TAR_CMD " %s %s -%sx -f - | tee /dev/stderr )\"\n",
+ (void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s; " TAR_CMD " %s %s -%sxp -f - | tee /dev/stderr )\"\n",
pkg, dir,
decompress_cmd != NULL ? "--use-compress-program" : "",
decompress_cmd != NULL ? decompress_cmd : "",
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->agc
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Tue, 08 Feb 2005 15:02:17 +0000
Responsible-Changed-Why:
agc committed the fix.
State-Changed-From-To: open->feedback
State-Changed-By: agc@netbsd.org
State-Changed-When: Sat, 05 Mar 2005 08:03:18 +0000
State-Changed-Why:
This should have been fixed in 1.12.2.1 of pkg_install/lib/ftpio.c
revision 1.12.2.1
date: 2005/02/15 13:59:21; author: salo; state: Exp; lines: +3 -3
Pullup ticket 272 - requested by Robert T. Retzlaff
pkg_add preserve modes of entries in binary packages
Revisions pulled up:
- pkgsrc/pkgtools/pkg_install/files/lib/ftpio.c 1.14
- pkgsrc/pkgtools/pkg_install/files/lib/version.h 1.39
please can you check that this is the case?
Thanks
State-Changed-From-To: feedback->closed
State-Changed-By: agc@netbsd.org
State-Changed-When: Fri, 01 Apr 2005 19:57:04 +0000
State-Changed-Why:
I closed the PR - nothing has been heard of in 4 weeks, and
pkgsrc-2004Q4 has been deprecated. It can be reopened again
if necessary.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.