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 /scripts/git-hooks/commit-msg | |
| parent | id: undo previous commit, which was done by mistake (diff) | |
| download | coreutils-47e511a1d0ee8c82d6e9014fb6a74ab6dfd89d3d.tar.gz coreutils-47e511a1d0ee8c82d6e9014fb6a74ab6dfd89d3d.zip | |
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 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
