GNU bug report logs - #2702
23.0.91; ls -al under eshell doesn't work on Windows Vista

Previous Next

Packages: emacs, w32;

Reported by: "Derek Kivi" <derek.kivi <at> quic.com>

Date: Tue, 17 Mar 2009 23:00:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <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 2702 in the body.
You can then email your comments to 2702 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#2702; Package emacs. (Tue, 17 Mar 2009 23:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Derek Kivi" <derek.kivi <at> quic.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 17 Mar 2009 23:00:03 GMT) Full text and rfc822 format available.

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

From: "Derek Kivi" <derek.kivi <at> quic.com>
To: <emacs-pretest-bug <at> gnu.org>
Subject: 23.0.91; ls -al under eshell doesn't work on Windows Vista
Date: Tue, 17 Mar 2009 16:48:21 -0600
[Message part 1 (text/plain, inline)]
In eshell, running the command "ls -al" can produce the following error:

 

c:/Derek $ ls -al

total 593

Wrong type argument: integerp, -2023488832.0

 

From correspondence with Eli Zaretskii on the help-emacs-windows mailing

list, this is due to the fact that a user's uid can be a float larger
than

an Emacs Lisp integer can hold.

 

The owner of the .. directory (c: itself) appears to be a user called

TrustedInstaller.

 

In GNU Emacs 23.0.91.1 (i386-mingw-nt6.0.6001)

 of 2009-02-26 on LENNART-69DE564

Windowing system distributor `Microsoft Corp.', version 6.0.6001

configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'

 

Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: ENC

  value of $XMODIFIERS: nil

  locale-coding-system: cp1252

  default-enable-multibyte-characters: t

 

Major mode: EShell

 

Minor modes in effect:

  tooltip-mode: t

  mouse-wheel-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  blink-cursor-mode: t

  global-auto-composition-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  column-number-mode: t

  line-number-mode: t

  transient-mark-mode: t

 

Recent input:

M-x e s h e l l <return> l s SPC - a l <return> c d 

<return> l s SPC - a l <return> c d SPC . . <return> 

l s SPC - a l <return> <help-echo> <help-echo> M-x 

r e p o r t - e m a c s - b u g <return>

 

Recent messages:

Loading em-basic...done

Loading em-cmpl...done

Loading em-dirs...done

Loading em-glob...done

Loading em-hist...done

Loading em-ls...done

Loading em-prompt...done

Loading em-script...done

Loading em-term...done

Loading em-unix...done

-- 
Derek Kivi
Senior Software Developer

QuIC Financial Technologies Inc. 
Office: +1 403 210 8282 
Mobile: +1 403 863 5204 
derek.kivi <at> quic.com

Risk. Managed.
www.quic.com 

Confidentiality Notice: The information transmitted is intended only for the person(s) or entity(ies) to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the email and any related material from any computer.
ver. QuIC 0707
[Message part 2 (text/html, inline)]
[QuIC-email-blue-orange.gif (image/gif, inline)]

bug reassigned from package `emacs' to `emacs,w32'. Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Wed, 18 Mar 2009 09:00:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2702; Package emacs,w32. (Wed, 18 Mar 2009 09:05:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Wed, 18 Mar 2009 09:05:06 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Derek Kivi <derek.kivi <at> quic.com>, 2702 <at> debbugs.gnu.org
Subject: Re: bug#2702: 23.0.91; ls -al under eshell doesn't work on Windows Vista
Date: Wed, 18 Mar 2009 04:59:50 -0400
> Date: Tue, 17 Mar 2009 16:48:21 -0600
> From: "Derek Kivi" <derek.kivi <at> quic.com>
> Cc: 
> 
> In eshell, running the command "ls -al" can produce the following error:
> 
> c:/Derek $ ls -al
> 
> total 593
> Wrong type argument: integerp, -2023488832.0
> 
> >From correspondence with Eli Zaretskii on the help-emacs-windows mailing
> list, this is due to the fact that a user's uid can be a float larger
> than an Emacs Lisp integer can hold.
> 
> The owner of the .. directory (c: itself) appears to be a user called
> TrustedInstaller.

Thank you for your report.  Could you please post the full SID
(Security Identifier) of this TrustedInstaller user?  This user is new
with Vista, so I'd like to have its SID value to better understand
what it does to Emacs code (for example, why the numeric UID comes out
negative, as your report shows).

There are several utilities available to display the SID.  One of them
is `subinacl', which can be downloaded from here:

  http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en

After you install it, the following command line will display the SID
of the owner of the root directory of the C: drive:

  subinacl /file C:\ /display=sddl

Please post here the full output of that command.

From info on the Internet, I understand that Vista comes with a
similar utility called icacls.exe, but I don't have a Vista where I'm
typing this, so I could not verify whether it can display the SID of
the owner, and what switches would you need to give it for that.

Thanks.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2702; Package emacs,w32. (Wed, 18 Mar 2009 16:05:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to derekkivi <at> yahoo.com:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Wed, 18 Mar 2009 16:05:05 GMT) Full text and rfc822 format available.

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

From: Derek Kivi <derekkivi <at> yahoo.com>
To: eliz <at> gnu.org, 2702 <at> debbugs.gnu.org
Subject: Re: bug#2702: 23.0.91; ls -al under eshell doesn't work on Windows Vista
Date: Wed, 18 Mar 2009 08:59:45 -0700 (PDT)
> After you install it, the following command line will
> display the SID
> of the owner of the root directory of the C: drive:
> 
>   subinacl /file C:\ /display=sddl
> 
> Please post here the full output of that command.

Hi Eli,

I have moved this to a non-work email to avoid the signature that accompanied my other emails. Sorry if that caused an inconvenience.

Here is the output from the subinacl command that you asked for:

C:\>subinacl /file C:\ /display=sddl

+File C:\
/sddl=O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80
-956008885-3418522649-1831038044-1853292631-2271478464D:PARAI(A;;FA;;;BA)(A;OICI
IO;GA;;;BA)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)(A;OICI;0x1200a9;;;BU)(A;OICIIO;SDGXGWG
R;;;AU)(A;;LC;;;AU)S:


Elapsed Time: 00 00:00:00
Done:        1, Modified        0, Failed        0, Syntax errors        0
Last Done  : C:\



      __________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2702; Package emacs,w32. (Wed, 18 Mar 2009 18:55:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Wed, 18 Mar 2009 18:55:04 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: derekkivi <at> yahoo.com
Cc: 2702 <at> debbugs.gnu.org
Subject: Re: bug#2702: 23.0.91; ls -al under eshell doesn't work on Windows Vista
Date: Wed, 18 Mar 2009 20:46:20 +0200
> Date: Wed, 18 Mar 2009 08:59:45 -0700 (PDT)
> From: Derek Kivi <derekkivi <at> yahoo.com>
> 
> C:\>subinacl /file C:\ /display=sddl
> 
> +File C:\
> /sddl=O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80
> -956008885-3418522649-1831038044-1853292631-2271478464D:PARAI(A;;FA;;;BA)(A;OICI
> IO;GA;;;BA)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)(A;OICI;0x1200a9;;;BU)(A;OICIIO;SDGXGWG
> R;;;AU)(A;;LC;;;AU)S:

Thanks, this gives me what I need to fix the problem.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Wed, 18 Mar 2009 20:55:05 GMT) Full text and rfc822 format available.

Notification sent to "Derek Kivi" <derek.kivi <at> quic.com>:
bug acknowledged by developer. (Wed, 18 Mar 2009 20:55:05 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: derekkivi <at> yahoo.com, Derek Kivi <derek.kivi <at> quic.com>
Cc: 2702-done <at> debbugs.gnu.org
Subject: Re: bug#2702: 23.0.91; ls -al under eshell doesn't work on Windows Vista
Date: Wed, 18 Mar 2009 22:45:36 +0200
Fixed with the two changes below.

Still todo: make uid_t and gid_t unsigned types on Windows, to avoid
negative values for users such as TrustedInstaller, with a suitable
change in the emulated `struct stat'.

2009-03-18  Eli Zaretskii  <eliz <at> gnu.org>

	* dired.c (Ffile_attributes): Make sure UID and GID are always
	positive, even if the value is too large for a positive EMACS_INT.
	Doc fix.

	* editfns.c (Fuser_login_name): Support float arguments.  Doc fix.





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

From: Eli Zaretskii <eliz <at> gnu.org>
To: derekkivi <at> yahoo.com, Derek Kivi <derek.kivi <at> quic.com>
Cc: 2702-done <at> debbugs.gnu.org
Subject: Re: bug#2702: marked as done (23.0.91; ls -al under eshell doesn't work on Windows Vista)
Date: Sat, 21 Mar 2009 13:35:11 +0200
> From: owner <at> emacsbugs.donarmstrong.com (Emacs bug Tracking System)
> Date: Wed, 18 Mar 2009 20:55:05 +0000
> 
> Still todo: make uid_t and gid_t unsigned types on Windows, to avoid
> negative values for users such as TrustedInstaller, with a suitable
> change in the emulated `struct stat'.

Done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 18 Apr 2009 14:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 65 days ago.

Previous Next


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