NetBSD Problem Report #28826
From rtr@elysium.omicron-persei-8.net Sat Jan 1 03:30:30 2005
Return-Path: <rtr@elysium.omicron-persei-8.net>
Received: from elysium.omicron-persei-8.net (220-245-140-30-vic-pppoe.tpgi.com.au [220.245.140.30])
by narn.netbsd.org (Postfix) with ESMTP id AC9A263B400
for <gnats-bugs@gnats.NetBSD.org>; Sat, 1 Jan 2005 03:30:29 +0000 (UTC)
Message-Id: <200501010330.j013UMWP015834@elysium.omicron-persei-8.net>
Date: Sat, 1 Jan 2005 14:30:22 +1100 (EST)
From: Tyler Retzlaff <rtr@netbsd.org>
Reply-To: rtr@netbsd.org
To: gnats-bugs@netbsd.org
Subject: pkg_add does not preserve mode when PKG_PATH is ftp://
X-Send-Pr-Version: 3.95
>Number: 28826
>Category: pkg
>Synopsis: pkg_add does not preserve mode when PKG_PATH is ftp://
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: agc
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 01 03:33:00 +0000 2005
>Closed-Date: Fri Jan 14 07:34:21 +0000 2005
>Last-Modified: Tue May 17 23:54:01 +0000 2005
>Originator: Tyler Retzlaff
>Release: NetBSD 2.0
>Organization:
none
>Environment:
System: NetBSD elysium.omicron-persei-8.net 2.0 NetBSD 2.0 (elysium) #0: Sat Jan 1 01:55:27 EST 2005 rtr@elysium.omicron-persei-8.net:/var/obj/elysium i386
Architecture: i386
Machine: i386
>Description:
Installing a binary package from PKG_PATH=ftp://foo the binary packages
mode as installed does not reflect what was packaged.
>How-To-Repeat:
1. use a ftp source for PKG_PATH
2. pkg_add priv (priv chosen since it's a good test case)
3. notice /usr/pkg/bin/priv is -r-xr-xr-x instead of -r-sr-xr-x
>Fix:
When package add does the ftp get it doesn't appear to use -p flag
to tar, so do it!
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->grant
Responsible-Changed-By: grant@netbsd.org
Responsible-Changed-When: Sat, 01 Jan 2005 04:45:23 +0000
Responsible-Changed-Why:
I'll take this.
.
From: "Alistair G. Crooks" <agc@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28826 CVS commit: src/usr.sbin/pkg_install/lib
Date: Thu, 6 Jan 2005 11:56:39 +0000 (UTC)
Module Name: src
Committed By: agc
Date: Thu Jan 6 11:56:39 UTC 2005
Modified Files:
src/usr.sbin/pkg_install/lib: ftpio.c
Log Message:
Address PR 28826 from Tyler Retzlaff - when extracting files from a binary
package addition by ftp, preserve the modes of the entries in the binary
package.
To generate a diff of this commit:
cvs rdiff -r1.65 -r1.66 src/usr.sbin/pkg_install/lib/ftpio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: grant->agc
Responsible-Changed-By: agc@netbsd.org
Responsible-Changed-When: Thu, 06 Jan 2005 12:01:00 +0000
Responsible-Changed-Why:
agc took this one
State-Changed-From-To: open->feedback
State-Changed-By: agc@netbsd.org
State-Changed-When: Thu, 06 Jan 2005 12:01:00 +0000
State-Changed-Why:
I committed a fix for this - please confirm that it works OK for you now.
From: "Alistair G. Crooks" <agc@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28826 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Fri, 7 Jan 2005 11:58:12 +0000 (UTC)
Module Name: pkgsrc
Committed By: agc
Date: Fri Jan 7 11:58:12 UTC 2005
Modified Files:
pkgsrc/pkgtools/pkg_install/files/add: extract.c
pkgsrc/pkgtools/pkg_install/files/lib: ftpio.c plist.c version.h
Log Message:
Sync changes with src/:
+ always echo the command which is about to be executed during a pkg_add
or pkg_delete, not just when verbose mode is on.
+ extract files on ftp pkg_adds with the 'p' flag to tar, to preserve
modes of entries in the binary package. (Addresses PR 28826 from
Tyler Retzlaff)
Bump version to 20050106
To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 pkgsrc/pkgtools/pkg_install/files/add/extract.c
cvs rdiff -r1.13 -r1.14 pkgsrc/pkgtools/pkg_install/files/lib/ftpio.c
cvs rdiff -r1.12 -r1.13 pkgsrc/pkgtools/pkg_install/files/lib/plist.c
cvs rdiff -r1.38 -r1.39 pkgsrc/pkgtools/pkg_install/files/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Alistair G. Crooks" <agc@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28826 CVS commit: pkgsrc/doc
Date: Fri, 7 Jan 2005 12:00:08 +0000 (UTC)
Module Name: pkgsrc
Committed By: agc
Date: Fri Jan 7 12:00:08 UTC 2005
Modified Files:
pkgsrc/doc: CHANGES
Log Message:
Sync pkg_install changes with src/:
+ always echo the command which is about to be executed during a pkg_add
or pkg_delete, not just when verbose mode is on.
+ extract files on ftp pkg_adds with the 'p' flag to tar, to preserve
modes of entries in the binary package. (Addresses PR 28826 from
Tyler Retzlaff)
Bump version to 20050106
To generate a diff of this commit:
cvs rdiff -r1.8646 -r1.8647 pkgsrc/doc/CHANGES
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Tyler Retzlaff <rtr@elysium.omicron-persei-8.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/28826
Date: Fri, 14 Jan 2005 16:46:06 +1100
The fix is good, tested ok.
Thanks
--
Tyler R. Retzlaff <rtr@NetBSD.org>
State-Changed-From-To: feedback->closed
State-Changed-By: agc@netbsd.org
State-Changed-When: Fri, 14 Jan 2005 07:34:21 +0000
State-Changed-Why:
Submitter confirms problem is fixed - thanks for that!
From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28826 CVS commit: [pkgsrc-2004Q4] pkgsrc/pkgtools/pkg_install/files/lib
Date: Tue, 15 Feb 2005 13:59:21 +0000 (UTC)
Module Name: pkgsrc
Committed By: salo
Date: Tue Feb 15 13:59:21 UTC 2005
Modified Files:
pkgsrc/pkgtools/pkg_install/files/lib [pkgsrc-2004Q4]: ftpio.c
version.h
Log Message:
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
Module Name: pkgsrc
Committed By: agc
Date: Fri Jan 7 11:58:12 UTC 2005
Modified Files:
pkgsrc/pkgtools/pkg_install/files/lib: ftpio.c version.h
Log Message:
Sync changes with src/:
+ extract files on ftp pkg_adds with the 'p' flag to tar, to preserve
modes of entries in the binary package. (Addresses PR 28826 from
Tyler Retzlaff)
Bump version to 20050106
To generate a diff of this commit:
cvs rdiff -r1.12 -r1.12.2.1 pkgsrc/pkgtools/pkg_install/files/lib/ftpio.c
cvs rdiff -r1.37 -r1.37.2.1 pkgsrc/pkgtools/pkg_install/files/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Jeff Rizzo <riz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28826 CVS commit: [netbsd-2] src/usr.sbin/pkg_install/lib
Date: Tue, 17 May 2005 23:53:44 +0000 (UTC)
Module Name: src
Committed By: riz
Date: Tue May 17 23:53:44 UTC 2005
Modified Files:
src/usr.sbin/pkg_install/lib [netbsd-2]: ftpio.c
Log Message:
Pull up revision 1.66 via patch (requested by reed in ticket #1515):
Address PR 28826 from Tyler Retzlaff - when extracting files from a binary
package addition by ftp, preserve the modes of the entries in the binary
package.
To generate a diff of this commit:
cvs rdiff -r1.62.4.1 -r1.62.4.2 src/usr.sbin/pkg_install/lib/ftpio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.