Remove envars before the SUDO phase

This is to allow root to execute ": > envars". On a non empty envars
owned by lfs, in a directory world writable with sticky bit and not owned
by lfs, this may be forbiden by the fs/protected_regular sysctl.
See https://www.kernel.org/doc/Documentation/sysctl/fs.txt
This commit is contained in:
Pierre Labastie 2020-03-15 17:15:28 +00:00
parent 94fc75e616
commit 2a9b0c3181

View file

@ -491,6 +491,7 @@ mk_LUSER: mk_SETUP
@touch \$@
mk_SUDO: mk_LUSER
@sudo rm envars
@sudo make BREAKPOINT=\$(BREAKPOINT) SUDO
@touch \$@