bug-coreutils
[Top][All Lists]
Advanced

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

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


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

Hi Paul,

Paul Eggert <address@hidden> skribis:

> -      if (GETID_MAY_FAIL && euid == -1 && !use_real
> +      if (euid < 0 && !use_real
>            && !just_group && !just_group_list && !just_context)
>          error (EXIT_FAILURE, errno, _("cannot get effective UID"));

On GNU/Hurd, no error would ever be raised (since uid_t is unsigned),
which defeats the purpose of the patch initially proposed.

Thanks,
Ludo’.





reply via email to

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