diff options
author | Junichi Uekawa <dancer@netfort.gr.jp> | 2011-09-21 09:05:05 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@netfort.gr.jp> | 2011-09-21 09:05:05 +0900 |
commit | 4ce89b7445b803f01184a67b507b42d059cba87e (patch) | |
tree | f63a9013ccffd94e9bcee389af8e0c469b6dc106 /pbuilder-buildpackage | |
parent | 111f408015e1fb718e436965b642852a50a35440 (diff) | |
download | pbuilder-4ce89b7445b803f01184a67b507b42d059cba87e.tar pbuilder-4ce89b7445b803f01184a67b507b42d059cba87e.tar.gz |
lighttpd test fails with cowdancer loaded. (closes: #640684)
Do not load cowdancer when su to normal user privilege; cowdancer
protection isn't needed there.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index b8e2446..9d0cce9 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -32,7 +32,11 @@ if [ ! -f "$PACKAGENAME" ]; then fi; if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then - SUTOUSER="env LOGNAME=$BUILDUSERNAME su -p $BUILDUSERNAME" + # Command to SU to user. + # COWNDACNER_IGNORE: Normal users don't have write access to build environment, so cowdancer shouldn't have to run. + # LOGNAME: set this to shut up some tools. + # su -p : switch to user preserving env vars, we need most of them. + SUTOUSER="env COWDANCER_IGNORE=yes LOGNAME=$BUILDUSERNAME su -p $BUILDUSERNAME" DEBBUILDOPTS="${DEBBUILDOPTS:+$DEBBUILDOPTS }-rfakeroot" EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot" log "I: using fakeroot in build." |