[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.60; uid problems on w32
From: |
Eli Zaretskii |
Subject: |
Re: 23.0.60; uid problems on w32 |
Date: |
Sun, 30 Mar 2008 01:40:02 -0400 |
> From: Stefan Monnier <address@hidden>
> Date: Sun, 30 Mar 2008 00:14:35 -0400
> Cc: address@hidden,
> "Lennart Borgman \(gmail\)" <address@hidden>
>
> >> 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?
- 23.0.60; uid problems on w32, Lennart Borgman (gmail), 2008/03/29
- Re: 23.0.60; uid problems on w32, Stefan Monnier, 2008/03/30
- Re: 23.0.60; uid problems on w32, Jason Rumney, 2008/03/30
- Re: 23.0.60; uid problems on w32, Eli Zaretskii, 2008/03/30
- Re: 23.0.60; uid problems on w32, Lennart Borgman (gmail), 2008/03/30
- Re: 23.0.60; uid problems on w32, Eli Zaretskii, 2008/03/30
- Re: 23.0.60; uid problems on w32, Lennart Borgman (gmail), 2008/03/30
- Re: 23.0.60; uid problems on w32, Eli Zaretskii, 2008/03/30