]> code.delx.au - gnu-emacs/commitdiff
(server-ensure-safe-dir): UIDs may be floats.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Jan 2007 03:51:24 +0000 (03:51 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Jan 2007 03:51:24 +0000 (03:51 +0000)
lisp/ChangeLog
lisp/server.el

index b3c620179cc7817a5ac50d2d18d58c8cfe083293..17145837a6ebca04e6b5da92ae28a236a4948321 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * server.el (server-ensure-safe-dir): UIDs may be floats.
+
 2007-01-10  Richard Stallman  <rms@gnu.org>
 
        * battery.el (battery-linux-proc-acpi): Use ignore-errors
index 3ae585e9bc4b4153a457463c2dbf3acfc5bfc7d2..beb065ef437d9e68c912b9e1b2b3cbcc7ffadab3 100644 (file)
@@ -1,7 +1,7 @@
 ;;; server.el --- Lisp code for GNU Emacs running as server process
 
 ;; Copyright (C) 1986, 1987, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-;;   2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+;;   2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 
 ;; Author: William Sommerfeld <wesommer@athena.mit.edu>
 ;; Maintainer: FSF
@@ -298,7 +298,7 @@ Creates the directory if necessary and makes sure:
       (letf (((default-file-modes) ?\700)) (make-directory dir t))
       (setq attrs (file-attributes dir)))
     ;; Check that it's safe for use.
-    (unless (and (eq t (car attrs)) (eq (nth 2 attrs) (user-uid))
+    (unless (and (eq t (car attrs)) (eql (nth 2 attrs) (user-uid))
                  (or (eq system-type 'windows-nt)
                      (zerop (logand ?\077 (file-modes dir)))))
       (error "The directory %s is unsafe" dir))))