diff options
author | jlam <jlam> | 2003-06-25 08:26:51 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-06-25 08:26:51 +0000 |
commit | f96368f220d02a75838a3d9c24c825f3292285b4 (patch) | |
tree | 6941cf1ac4ef6bb61927adddd43780f8f942e907 /mk/install | |
parent | cac6ed2ec09c1a18a389a79176d10ea6a3444905 (diff) | |
download | pkgsrc-f96368f220d02a75838a3d9c24c825f3292285b4.tar.gz |
Only change the owner/group/mode of a directory tree if it's not
pre-existing. This should fix pkg/21975 by Matthias Scheler.
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/install | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/install/install b/mk/install/install index 0227cfb95d8..99e95a56f9e 100644 --- a/mk/install/install +++ b/mk/install/install @@ -1,6 +1,6 @@ # start of install # -# $NetBSD: install,v 1.19 2003/01/29 19:47:29 jlam Exp $ +# $NetBSD: install,v 1.20 2003/06/25 08:26:51 jlam Exp $ case ${STAGE} in PRE-INSTALL) @@ -119,10 +119,10 @@ PRE-INSTALL) if [ ! -d "${dir}" ]; then ${MKDIR} "${dir}" ${ECHO} "${PKGBASE}" > "${dir}/.pkgsrc" + ${CHOWN} -R "${owner}" "${dir}" + ${CHGRP} -R "${group}" "${dir}" + ${CHMOD} -R "${mode}" "${dir}" fi - ${CHOWN} -R "${owner}" "${dir}" - ${CHGRP} -R "${group}" "${dir}" - ${CHMOD} -R "${mode}" "${dir}" fi done fi |