Subject: CVS commit: src/usr.sbin/pkg_install/add
To: None <source-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@netbsd.org>
List: source-changes
Date: 11/03/2006 09:17:24
Module Name: src
Committed By: joerg
Date: Fri Nov 3 09:17:24 UTC 2006
Modified Files:
src/usr.sbin/pkg_install/add: extract.c
Log Message:
If a plist contains @owner or @group entries and first rename failed,
pushout was called with NULL argument. This has the semantic of using a
working directory of "/", even though already read plist entries are
relative to prefix. The calls to chown and chgrp therefore end up with
the wrong arguments for the current directory. To compensate for this,
don't pushout the first time. As plists are not supposed to have
multiple @cwd entries anymore, this could most likely be simplified, but
that is outside the scope of this commit.
Reviewed by agc@
To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 src/usr.sbin/pkg_install/add/extract.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.