emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Owner and Group ID on Windows


From: Eli Zaretskii
Subject: Re: File Owner and Group ID on Windows
Date: Thu, 21 Aug 2008 08:44:56 +0300

> Date: Thu, 21 Aug 2008 03:27:20 +0200
> From: "Juanma Barranquero" <address@hidden>
> Cc: address@hidden
> 
> On Fri, May 9, 2008 at 23:13, Eli Zaretskii <address@hidden> wrote:
> 
> > There could be some fallout, especially in code that was working until
> > now because all files appeared to be owned by the current user.  Now
> > this will change, which could cause Emacs think the user is trying to
> > change files she doesn't own.  VC is one place where such problems
> > could happen.  I'm asking Windows users to please be alert and report
> > any problems that could be related to this.
> 
> emacs -Q
> M-x server-start <RET>  =>  "The directory ~/.emacs.d/server is unsafe"
> 
> because
> 
>   (nth 2 (file-attributes "~/.emacs.d/server/")) == 1006
>   (user-uid) == 123

I cannot reproduce this with yesterday's CVS: user-uid returns 1004,
which is identical to what file-attributes returns for files owned by
me.  Are you using a recent CVS?  If so, could you please debug
through w32.c:init_user_info, where it sets the value of
dflt_passwd.pw_uid, and see what went wrong?  The value of 123
suggests that the syscalls to get the real owner and group of the
current Emacs process (starting at open_process_token) somehow failed.

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]