mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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:
parent
9e82d3dd08
commit
a8c3cbdf0b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user