[Pkg-ltsp-devel] Bug#765443: ltsp-server: Unset variables set by libpam-tmpdir in ltsp-chroot?
Petter Reinholdtsen
pere at hungry.com
Wed Oct 15 22:15:14 UTC 2014
[Vagrant Cascadian]
> I'm not sure what to make of this one, honestly.
I would go with unsetting all of them or checking if they exist in the
chroot and unsetting if they don't. I fail to see why it would be
that much more code.
We are talking about something like this:
unset TMPDIR TEMP TEMPDIR TMP
or
for var in TMPDIR TEMP TEMPDIR TMP ; do
eval "dir=\$$var"
if [ -d /chroot/$dir ] ; then
:
else
eval "unset $var"
fi
done
Definitely more code, but not really a lot.
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-ltsp-devel
mailing list