Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pkg_install/add Add 'p' option to TARX_CMD's argume...



details:   https://anonhg.NetBSD.org/src/rev/e59bc01f9c0a
branches:  trunk
changeset: 539897:e59bc01f9c0a
user:      taca <taca%NetBSD.org@localhost>
date:      Thu Nov 28 23:52:31 2002 +0000

description:
Add 'p' option to TARX_CMD's argument for preserving file mode.
This fixes the problem that pkg_add(1) drops setuid/setgid bit.

This problem occurs on pax(1) based tar environment.
pkgtools/pkg_install should be fixed, too.

diffstat:

 usr.sbin/pkg_install/add/extract.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r bf3f193a2eee -r e59bc01f9c0a usr.sbin/pkg_install/add/extract.c
--- a/usr.sbin/pkg_install/add/extract.c        Thu Nov 28 23:46:15 2002 +0000
+++ b/usr.sbin/pkg_install/add/extract.c        Thu Nov 28 23:52:31 2002 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: extract.c,v 1.24 2002/10/17 03:31:33 christos Exp $    */
+/*     $NetBSD: extract.c,v 1.25 2002/11/28 23:52:31 taca Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "FreeBSD - Id: extract.c,v 1.17 1997/10/08 07:45:35 charnier Exp";
 #else
-__RCSID("$NetBSD: extract.c,v 1.24 2002/10/17 03:31:33 christos Exp $");
+__RCSID("$NetBSD: extract.c,v 1.25 2002/11/28 23:52:31 taca Exp $");
 #endif
 #endif
 
@@ -34,7 +34,7 @@
 #include "add.h"
 
 #define TAR_ARGS       " cf - "
-#define TARX_CMD       "|" TAR_CMD " xf - -C "
+#define TARX_CMD       "|" TAR_CMD " xpf - -C "
 
 /* 
  * This macro is used to determine if the 'where_args'  buffer is big enough to add the



Home | Main Index | Thread Index | Old Index