bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#10021: [PATCH id] Add error-checking on GNU


From: Ludovic Courtès
Subject: Re: bug#10021: [PATCH id] Add error-checking on GNU
Date: Mon, 14 Nov 2011 21:29:42 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Hi,

Eric Blake <eblake@redhat.com> skribis:

> On 11/14/2011 11:54 AM, Paul Eggert wrote:

[...]

>>        euid = geteuid ();
>> -      if (GETID_MAY_FAIL && euid == -1 && !use_real
>> +      if (euid < 0 && !use_real
>
> That is, how can this work?  On systems where uid_t is signed, it makes
> sense, but on systems where uid_t is unsigned, this will always be false

And again, it *is* unsigned in glibc.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]