[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs server fails to start with large uid on unix
From: |
Stefan Monnier |
Subject: |
Re: emacs server fails to start with large uid on unix |
Date: |
Mon, 08 Jan 2007 11:24:05 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) |
>> Does this fix it?
> Yes, it fixes part of the problem. But the next bug is revealed when I use
> your fix:
> Debugger entered--Lisp error: (error "The directory /tmp/emacs800154870 is
> unsafe")
Does the patch below help?
Stefan
--- orig/lisp/server.el
+++ mod/lisp/server.el
@@ -298,7 +298,7 @@
(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))))
- emacs server fails to start with large uid on unix, Benjamin Rutt, 2007/01/07
- Re: emacs server fails to start with large uid on unix, Stefan Monnier, 2007/01/07
- Re: emacs server fails to start with large uid on unix, Richard Stallman, 2007/01/08
- Re: emacs server fails to start with large uid on unix, Benjamin Rutt, 2007/01/08
- Re: emacs server fails to start with large uid on unix,
Stefan Monnier <=
- Re: emacs server fails to start with large uid on unix, Benjamin Rutt, 2007/01/08
- Re: emacs server fails to start with large uid on unix, Stefan Monnier, 2007/01/08
- Re: emacs server fails to start with large uid on unix, Richard Stallman, 2007/01/08
- Re: emacs server fails to start with large uid on unix, Stefan Monnier, 2007/01/13
- Re: emacs server fails to start with large uid on unix, Benjamin Rutt, 2007/01/19
- Re: emacs server fails to start with large uid on unix, Richard Stallman, 2007/01/20