]> code.delx.au - gnu-emacs/commitdiff
(hack-one-local-variable): Check for root using user-uid.
authorRichard M. Stallman <rms@gnu.org>
Fri, 8 Jul 1994 21:26:56 +0000 (21:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 8 Jul 1994 21:26:56 +0000 (21:26 +0000)
lisp/files.el

index ff335fe9d60882f35b4c66e1d78053d5d6fd170d..91dffa73b98747371bd61afd0acd913c82559fbb 100644 (file)
@@ -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