Subject: Doesn't drop privileges
To: None <>
From: =?ISO-8859-1?Q?C=E9sar_Catri=E1n_Carre=F1o?= <>
List: tech-pkg
Date: 09/01/2006 18:32:36
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


When the following variables are set:


pkgsrc goes to root for installing the dependent package.

If that package doesn't exist, tries to build it.

Nevertheless, it doesn't drop the privileges in this situation.


=3D> Returning to build of the package.
=3D> Required installed package flex>=3D2.5.4a: NOT found
=3D> Verifying bin-install clean for ../../devel/flex
=3D=3D=3D> Binary install for flex>=3D2.5.4a
=3D> Becoming ``root'' to make su-bin-install (/usr/pkg/bin/sudo)
=3D> Installing flex-2.5.4a from /home/cetrox/src/pkgsrc/packages/All;/All
pkg_add: no pkg found for 'flex>=3D2.5.4a.tgz', sorry.
pkg_add: 1 package addition failed
=3D> No binary package found for flex-2.5.4a -- installing from source
=3D> Required installed package digest>=3D20010302: digest-20060302 found
=3D=3D=3D> Checking for vulnerabilities in flex-2.5.4a
=3D> Unwrapping files-to-be-installed.
=3D=3D=3D> Installing for flex-2.5.4a
=3D> Lock is held by pid 14634
=3D> Lock is held by pid 14634
=3D> Lock is held by pid 14634

$ ls -l /usr/pkgsrc/devel/flex                [18:30:33 - 06-09-01]
total 16
drwxr-xr-x   2 cetrox  cetrox   512 Sep  1 09:42 CVS
-rw-r--r--   1 cetrox  cetrox   636 May  6  2003 DESCR
-rw-r--r--   1 cetrox  cetrox   445 Apr  7 23:28 Makefile
-rw-r--r--   1 cetrox  cetrox   131 Oct 31  2001 PLIST
-rw-r--r--   1 cetrox  cetrox   574 Jul 28 21:03
-rw-r--r--   1 cetrox  cetrox   355 Oct  9  2005 distinfo
drwxr-xr-x   3 cetrox  cetrox   512 Oct  9  2005 patches
drwxr-xr-x  12 root    cetrox  1024 Sep  1 17:48 work.core

Installing the package separately works fine.


C=E9sar Catri=E1n Carre=F1o

Content-Type: application/pgp-signature

Version: GnuPG v1.4.5 (NetBSD)