From: Richard M. Stallman Date: Fri, 8 Jul 1994 21:26:56 +0000 (+0000) Subject: (hack-one-local-variable): Check for root using user-uid. X-Git-Tag: emacs-19.34~7672 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/c7e6266013a484e551f05e1c1b66061198f7b17b (hack-one-local-variable): Check for root using user-uid. --- diff --git a/lisp/files.el b/lisp/files.el index ff335fe9d6..91dffa73b9 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1182,7 +1182,7 @@ If `enable-local-variables' is nil, this function does not check for a (memq (nth 1 (nth 2 val)) '(lisp-indent-hook))) ;; Permit eval if not root and user says ok. - (and (not (string= (user-login-name) "root")) + (and (not (zerop (user-uid))) (or (eq enable-local-eval t) (and enable-local-eval (save-window-excursion