Subject: bug#865: 23.0.60; The directory is unsafe today

From: "Lennart Borgman (gmail)" <[email-masked]>
Date: Tue, 02 Sep 2008 18:05:00 +0200

server-ensure-safe-dir complained today during server-start. Examining
the values in server-ensure-safe-dir I found the following:

  (default-file-modes) => 511 (#o777, #x1ff)
  (user-uid) => 30675 (#o73723, #x77d3)

  dir's value is
  "c:/Documents and Settings/my-userid/Application Data/.emacs.d/server"

  drwxrwxrwx  1 Administrators Domain Users 0 03-07 11:14 server

  attrs's value is
  (t 1 544 513
     (18621 8536)
     (18385 5511)
     (17762 50477)
     0 "drwxrwxrwx" nil
     (44800 0 . 20258)
     (32879 . 13859))

The part that where server-unsure-safe-dir barks is

  (eql (nth 2 attrs) (user-uid))

This check is maybe something that should be skipped on w32? As you can
see from the dired output above it will get "Domain Users" in my case.

(This is from my patched version, but there is no patches in w32.c or
server.el.)

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-09-02 on (patched)
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/g/include'