diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-11-15 09:30:49 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-11-15 09:31:21 -0800 |
commit | 47e511a1d0ee8c82d6e9014fb6a74ab6dfd89d3d (patch) | |
tree | eb9d463ee0cd44c91bb5d3178505b7f7e5a50f42 /src/pathchk.c | |
parent | 7db79cc4f802aa39b6e03bbfce12c405381f8398 (diff) | |
download | coreutils-47e511a1d0ee8c82d6e9014fb6a74ab6dfd89d3d.tar.xz |
id: handle (uid_t) -1 more portably
* src/id.c (GETID_MAY_FAIL): Remove.
(main): Check for nonzero errno, rather than having a compile-time
GETID_MAY_FAIL guess. Suggested by Roland McGrath in
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10021#47>.
Also, the old code was incorrect if uid_t was narrower than int.
(print_full_info): Remove unnecessary cast to -1.
Diffstat (limited to 'src/pathchk.c')
0 files changed, 0 insertions, 0 deletions