From c7e6266013a484e551f05e1c1b66061198f7b17b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 8 Jul 1994 21:26:56 +0000 Subject: [PATCH] (hack-one-local-variable): Check for root using user-uid. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index ff335fe9d60..91dffa73b98 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 -- 2.39.5