GNU bug report logs - #98
23.0.60; uid problems on w32

Previous Next

Package: emacs;

Reported by: "Lennart Borgman \(gmail\)" <lennart.borgman <at> gmail.com>

Date: Sat, 29 Mar 2008 23:05:06 UTC

Severity: normal

Done: Jason Rumney <jasonr <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: "Lennart Borgman \(gmail\)" <lennart.borgman <at> gmail.com>
Subject: bug#98 closed by Jason Rumney <jasonr <at> gnu.org> ([Fwd: Re: 
 23.0.60; uid problems on w32])
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#98: 23.0.60; uid problems on w32

It has been closed by Jason Rumney <jasonr <at> gnu.org>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Jason Rumney <jasonr <at> gnu.org> by
replying to this email.


-- 
98: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=98
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jason Rumney <jasonr <at> gnu.org>
To: 98-done <at> debbugs.gnu.org
Subject: [Fwd: Re: 23.0.60; uid problems on w32]
Date: Fri, 11 Apr 2008 21:54:07 +0100
[Message part 3 (text/plain, inline)]

[Re: 23.0.60; uid problems on w32.eml (message/rfc822, inline)]
From: Jason Rumney <jasonr <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: monnier <at> iro.umontreal.ca, emacs-pretest-bug <at> gnu.org, 
 lennart.borgman <at> gmail.com
Subject: Re: 23.0.60; uid problems on w32
Date: Mon, 31 Mar 2008 15:28:15 +0100
Eli Zaretskii wrote:
>> Eli Zaretskii wrote:
>>     
>>> Actually, one (in `struct passwd') is `signed int', the other (in
>>> `struct stat') is `signed short'.  Darn that MS-supplied stat.h!
>>>       
>
> OK, I will add this to my todo.  Thanks.
>   

I have just checked in a hack to Ffile_attributes that casts the uid in 
the stat structure to unsigned short on windows to make it consistent 
with getuid.
You'll need to remove this hack if/when you make the above more 
comprehensive change. I think the current %= 60001 in several places in 
w32.c where uid and gid are initialised will be able to be removed once 
you have made this change too.

[Message part 5 (message/rfc822, inline)]
From: "Lennart Borgman \(gmail\)" <lennart.borgman <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; uid problems on w32
Date: Sat, 29 Mar 2008 23:09:07 +0100
I have got at bug report from Thierry Daucourt through

  http://www.emacswiki.org/cgi-bin/wiki/EmacsW32

It looks like this could be a bug in Emacs. The crucial part of that bug 
report are the values investigated at the end of 
`server-ensure-safe-dir' where the user get the following for 
file-attributes and user-id:

 attrs (t 1 -14706 513 (18414 17797) (18414 17797) (18414 17797) 0 
drwxrwxrwx
 nil 34842 (7173 . 33003))
 nth 2 attrs **-14706**
 user id **50830**

He also checked with Cygwin which gave other values than the two 
different above for the uid:

 $ ls -ld server/
 drwxr-xr-x+ 2 my_user mkgroup-l-d 0 Mar 29 14:35 server/
 $ id
 uid=**60830**(my_user) gid=10545(mkgroup-l-d) 
groups=0(root),544(Administrators),545(Users),10545(mkgroup-l-d)


If I do not misunderstand him he has got these values from the unpatched 
version below.

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-03-25




This bug report was last modified 17 years and 45 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.