aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordancer <dancer>2005-12-01 00:01:28 +0000
committerdancer <dancer>2005-12-01 00:01:28 +0000
commitb5842d892aeb8b3db5882d8a9ba766bf063ddf45 (patch)
tree9ac6c77c8b4fbef959284080ea60227e95df1e86
parent0516efa2744b59a9e9656dcc60a4680960d4cb9a (diff)
downloadpbuilder-b5842d892aeb8b3db5882d8a9ba766bf063ddf45.tar
pbuilder-b5842d892aeb8b3db5882d8a9ba766bf063ddf45.tar.gz
preserve environment when su to root.
-rw-r--r--ChangeLog5
-rw-r--r--debian/changelog6
-rwxr-xr-xpbuilder-buildpackage2
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4753bee..7d5ded9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-01 Junichi Uekawa <dancer@debian.org>
+
+ * pbuilder-buildpackage: preserve environment when
+ running as root. Thanks to Mike Hommey
+
2005-11-28 Junichi Uekawa <dancer@debian.org>
* testsuite/run-test.sh: run pdebuild-internal on one directory
diff --git a/debian/changelog b/debian/changelog
index b4b39dc..65971f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
pbuilder (0.140) UNRELEASED; urgency=low
- *
+ [Junichi Uekawa]
+ * Bug fix: "pbuilder: PATH not preserved when either BUILDUSERID or
+ BUILDUSERNAME isn't set", thanks to Mike Hommey (Closes: #341453).
- -- Junichi Uekawa <dancer@debian.org> Thu, 17 Nov 2005 08:09:52 +0900
+ -- Junichi Uekawa <dancer@debian.org> Thu, 1 Dec 2005 09:00:02 +0900
pbuilder (0.139) unstable; urgency=low
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 71c2c91..027c954 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -39,7 +39,7 @@ if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then
echo "I: using fakeroot in build."
else
# run the build in root
- SUTOUSER="su "
+ SUTOUSER="su -p "
BUILDUSERID=0
BUILDUSERNAME=root
fi