Subject: Re: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 12 Jul 2019 17:00:27 +0200

Eli Zaretskii <[email-masked]> writes:

>> Because it'll run with full admin privileges the user's ~/.emacs which
>> was likely not written under the assumption that you have to be very
>> careful not to mess up the whole system.
>
> Isn't that what 'su' is supposed to allow?

Under su you can run any command -- that's true.

But it's unexpected to have a program run this code as root.  At least,
it's not what I would expect, and I have not written the code in
/home/larsi/.emacs under the assumption that is has to be safe for root
to run.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no