[Pbuilder-maint] Bug#439285: pbuilder login does not create a login shell
Ben Hutchings
ben at decadent.org.uk
Thu Aug 23 22:27:18 UTC 2007
Package: pbuilder
Version: 0.161
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
pbuilder login does:
${CHROOTEXEC} bin/bash
This starts bash as a normal interactive shell, not a login shell.
This means that it can, for example, be suspended, with unpleasant
results. bash's exec command allows setting the invoked program's 0th
argument with the -a option, so it would be possible to start a login
shell with:
(${CHROOTEXEC} bin/bash -c 'exec -a -bash bin/bash')
Ben.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGzgnG79ZNCRIGYgcRAmqDAJ93/731FWO27JFovgTqj/QB9NheCACglLwq
YFXN2xbxNGFa8UYcFvQBns0=
=S2dP
-----END PGP SIGNATURE-----
More information about the Pbuilder-maint
mailing list