From: Jim Meyering Date: Mon, 10 Feb 2003 13:19:00 +0000 (+0000) Subject: add comments and fix dumb typos X-Git-Tag: DU-FTS~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81b7f5a4073e37661b6b6d0c615a8e34662902f7;p=thirdparty%2Fcoreutils.git add comments and fix dumb typos --- diff --git a/src/test.c b/src/test.c index d52c3aef14..3b01f13d43 100644 --- a/src/test.c +++ b/src/test.c @@ -155,6 +155,7 @@ eaccess (char const *file, int mode) egid = getegid (); } + /* Set the real user and group IDs to the effective ones. */ if (uid != euid) setreuid (euid, uid); if (gid != egid) @@ -162,10 +163,11 @@ eaccess (char const *file, int mode) result = access (file, mode); + /* Restore them. */ if (uid != euid) - setreuid (euid, uid); + setreuid (uid, euid); if (gid != egid) - setregid (egid, gid); + setregid (gid, egid); return result; }