Sudo: Set the right LOGFILE' and TIMEDIR' paths.

This fixes `sudo' so that it can actually remember your password
across invocations.


svn path=/nixpkgs/trunk/; revision=14548
This commit is contained in:
Ludovic Courtès 2009-03-16 08:31:23 +00:00
parent 9e82d3dd08
commit a8c3cbdf0b

View File

@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
postConfigure = "
sed -e '/_PATH_MV/d; /_PATH_VI/d' -i config.h
echo '#define _PATH_SUDO_LOGFILE \"/var/log/sudo.log\"' >> config.h
echo '#define _PATH_SUDO_TIMEDIR \"/var/run/sudo\"' >> config.h
echo '#define _PATH_MV \"/var/run/current-system/sw/bin/mv\"' >> config.h
echo '#define _PATH_VI \"/var/run/current-system/sw/bin/nano\"' >> config.h
echo '#define EDITOR _PATH_VI' >>config.h