X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fidpriv-drop.c;h=2affeb5544c0afed8927722164f7731f0fb96241;hb=4f044de87e05bee61005c48bb93f3bb9a4b76461;hp=e1fa02f8ba51757c0638adaed42c96a383c5726e;hpb=4a9d024d163ecb817de31600402d3df08e2aed2b;p=gnulib.git diff --git a/lib/idpriv-drop.c b/lib/idpriv-drop.c index e1fa02f8b..2affeb554 100644 --- a/lib/idpriv-drop.c +++ b/lib/idpriv-drop.c @@ -1,5 +1,5 @@ /* Dropping uid/gid privileges of the current process permanently. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -88,9 +88,9 @@ idpriv_drop (void) uid_t effective; uid_t saved; if (getresuid (&real, &effective, &saved) < 0 - || real != uid - || effective != uid - || saved != uid) + || real != uid + || effective != uid + || saved != uid) abort (); } #else @@ -109,9 +109,9 @@ idpriv_drop (void) gid_t effective; gid_t saved; if (getresgid (&real, &effective, &saved) < 0 - || real != gid - || effective != gid - || saved != gid) + || real != gid + || effective != gid + || saved != gid) abort (); } #else