From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; uid problems on w32 Date: Sun, 30 Mar 2008 01:40:02 -0400 Message-ID: References: <47EEBE03.9030104@gmail.com> <47EEE4D9.9090600@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1206855622 663 80.91.229.12 (30 Mar 2008 05:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 05:40:22 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, lennart.borgman@gmail.com, jasonr@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 30 07:40:53 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfqHh-0002xy-S9 for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 07:40:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfqH5-0003YA-V5 for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 01:40:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfqGz-0003Y5-8Y for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:40:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfqGx-0003Xt-Fo for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:40:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfqGw-0003Xq-VY for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:40:03 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfqGw-00033O-Lz for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:40:02 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JfqGw-0002lo-8u; Sun, 30 Mar 2008 01:40:02 -0400 In-reply-to: (message from Stefan Monnier on Sun, 30 Mar 2008 00:14:35 -0400) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93874 gmane.emacs.pretest.bugs:21791 Archived-At: > From: Stefan Monnier > Date: Sun, 30 Mar 2008 00:14:35 -0400 > Cc: emacs-pretest-bug@gnu.org, > "Lennart Borgman \(gmail\)" > > >> attrs (t 1 -14706 513 (18414 17797) (18414 17797) (18414 17797) > >> 0 drwxrwxrwx > >> nil 34842 (7173 . 33003)) > >> nth 2 attrs **-14706** > >> user id **50830** > > > It appears the directory in question was created by a different user. > > Are you sure? (+ 50830 14706) == 65536, so the two numbers are > equal module 2^16. I.e. one is "signed int16" and the other is > "unsigned int16". Actually, one (in `struct passwd') is `signed int', the other (in `struct stat') is `signed short'. Darn that MS-supplied stat.h! Yes, this is probably the reason. Jason, do we have any good reasons to use `struct stat' as declared on the system header? If not, I'd say let's roll our own, and be done with this ugliness. (It will also help us stop the bit-juggling we do to squeeze a 48-bit file index into a 16-bit st_ino. I'm still clueless about why Cygwin shows 60830, while we show 50830. Ideas, anyone?