[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unsigned uid_t
From: |
Moritz Schulte |
Subject: |
unsigned uid_t |
Date: |
12 Jun 2001 18:14:22 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Hi,
i found out that tools like 'id' and 'whoami' display the [UG]ID
4294967295 for the Hurd nouser.
This is because the IDs are handled as unsigned ints; GNU Libc says:
- Data Type: uid_t
This is an integer data type used to represent user IDs. In the
GNU library, this is an alias for `unsigned int'.
But, get*id() are returning -1 (signed) (-> 4294967295 (unsigned)) for
the nouser.
Should that be fixed? If yes, how? Should we use a signed uid_t or
would that violate a standard?
moritz
--
Moritz Schulte <moritz@chaosdorf.de> http://www.chaosdorf.de/moritz/
Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org/
GPG fingerprint = 3A14 3923 15BE FD57 FC06 B501 0841 2D7B 6F98 4199
- unsigned uid_t,
Moritz Schulte <=