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:
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postConfigure = "
|
postConfigure = "
|
||||||
sed -e '/_PATH_MV/d; /_PATH_VI/d' -i config.h
|
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_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 _PATH_VI \"/var/run/current-system/sw/bin/nano\"' >> config.h
|
||||||
echo '#define EDITOR _PATH_VI' >>config.h
|
echo '#define EDITOR _PATH_VI' >>config.h
|
||||||
|
|||||||
Reference in New Issue
Block a user