diff options
author | obache <obache@pkgsrc.org> | 2013-02-21 13:33:10 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-02-21 13:33:10 +0000 |
commit | 2b4fcf8ba3a1fa31e095bde7b903356dba362643 (patch) | |
tree | dc7747b2521efb4116573ce62fc9d6deea7092db /mk | |
parent | efe0167208eafb157eab25230cd798a8a5466fb8 (diff) | |
download | pkgsrc-2b4fcf8ba3a1fa31e095bde7b903356dba362643.tar.gz |
if `id -u' failed, assume that numeric ID is specified (especially for Cygwin).
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 4e8a9f8a9c3..2d29b4dd605 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1985 2013/02/15 09:22:50 obache Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1986 2013/02/21 13:33:10 obache Exp $ # # This file is in the public domain. # @@ -616,7 +616,7 @@ su-target: .USE "") ;; \ *) ${PRE_CMD.su-${.TARGET}} ;; \ esac; \ - if ${TEST} `${ID} -u` = `${ID} -u ${_SU_ROOT_USER}`; then \ + if ${TEST} `${ID} -u` = `${ID} -u ${_SU_ROOT_USER} 2>/dev/null || ${ECHO} ${_SU_ROOT_USER}`; then \ ${_ROOT_CMD}; \ else \ case ${PRE_ROOT_CMD:Q}"" in \ |