[Pkg-shadow-devel] Bug#317264: login: Current su breaks pbuilder

Nicolas François Nicolas François <nicolas.francois@centraliens.net>, 317264@bugs.debian.org
Thu, 7 Jul 2005 12:37:17 +0200


--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello Daniel,

This was introduced by the patch for #276419, which I still approve.
Here is a fix for pbuilder.
(I'm CCing the pbuilder maintainer to have his opinion, before reassigning
this bug to pbuilder)

Note: This may require a versioned dependancy.

("su <user> -- arg1 arg2" used to run "<shell> -c arg1 arg2" and it now
launch "<shell> arg1 arg2", so a pbuilder with this patch and an old su
will run "<shell> -c -c arg1 arg2", which is not an issue for bash, but
may be annoying for another shell)

Best Regards,
-- 
Nekral

--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="pbuilder-buildpackage.diff"

--- pbuilder-buildpackage.orig	2005-07-07 12:24:02.000000000 +0200
+++ pbuilder-buildpackage	2005-07-07 12:24:37.000000000 +0200
@@ -32,7 +32,7 @@
 fi;
 
 if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then
-    SUTOUSER="su -p $BUILDUSERNAME -- "
+    SUTOUSER="su -p $BUILDUSERNAME -- -c "
     DEBBUILDOPTS="$DEBBUILDOPTS -rfakeroot"
     EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot"
     echo "I: using fakeroot in build."

--OgqxwSJOaUobr8KG--