diff options
Diffstat (limited to 'pbuilder-buildpackage-funcs')
-rw-r--r-- | pbuilder-buildpackage-funcs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-buildpackage-funcs b/pbuilder-buildpackage-funcs index 1446b21..d8fe0ba 100644 --- a/pbuilder-buildpackage-funcs +++ b/pbuilder-buildpackage-funcs @@ -80,8 +80,8 @@ function cowprotect () { } function createbuilduser () { - # create the build user - if [ -n "$SUTOUSER" ]; then + # create the build user, if it is necessary and specified. + if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then if ! grep -q ^$BUILDUSERNAME: $BUILDPLACE/etc/passwd; then cowprotect $BUILDPLACE/etc/passwd echo "$BUILDUSERNAME:x:$BUILDUSERID:$BUILDUSERID:,,,:/tmp/buildd:/bin/sh" >> $BUILDPLACE/etc/passwd |