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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 98 in the body.
You can then email your comments to 98 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#98; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Lennart Borgman \(gmail\)" <lennart.borgman <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

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





Reply sent to Jason Rumney <jasonr <at> gnu.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "Lennart Borgman \(gmail\)" <lennart.borgman <at> gmail.com>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 98-done <at> emacsbugs.donarmstrong.com (full text, mbox):

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 1 (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.


bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 10 May 2008 14:24:02 GMT) Full text and rfc822 format available.

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.