aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage-funcs
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-10-23 09:23:52 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-10-23 09:23:52 +0000
commit47f86a02a0c88b18ba403f74382c2db1d13e443c (patch)
treec593f5d4434bc6400fbb24bc0fef0ce002923f59 /pbuilder-buildpackage-funcs
parent7dfb7e909a52f2ea20d492c6ab71b565d6fb5f97 (diff)
downloadpbuilder-47f86a02a0c88b18ba403f74382c2db1d13e443c.tar
pbuilder-47f86a02a0c88b18ba403f74382c2db1d13e443c.tar.gz
buildpackage: also set the value of BUILD_HOME in the chroot passwd
This is a follow-up commit of a60fed7f9f773368c1adcf0f0784972889dd728a Thanks: Paul Wise for noticing Gbp-Dch: Ignore
Diffstat (limited to 'pbuilder-buildpackage-funcs')
-rw-r--r--pbuilder-buildpackage-funcs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbuilder-buildpackage-funcs b/pbuilder-buildpackage-funcs
index 4f0078c..e0aabfa 100644
--- a/pbuilder-buildpackage-funcs
+++ b/pbuilder-buildpackage-funcs
@@ -92,7 +92,7 @@ function createbuilduser () {
if [ -e $BUILDPLACE/etc/gshadow ]; then g='x'; else g='*'; fi
if ! grep -q ^$BUILDUSERNAME: $BUILDPLACE/etc/passwd; then
cowprotect $BUILDPLACE/etc/passwd
- echo "$BUILDUSERNAME:$p:$BUILDUSERID:$BUILDUSERID:,,,:$BUILDDIR:/bin/sh" >> $BUILDPLACE/etc/passwd
+ echo "$BUILDUSERNAME:$p:$BUILDUSERID:$BUILDUSERID:,,,:$BUILD_HOME:/bin/sh" >> $BUILDPLACE/etc/passwd
fi
if ! grep -q ^$BUILDUSERNAME: $BUILDPLACE/etc/group; then
cowprotect $BUILDPLACE/etc/group