X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fidpriv-drop.c;h=30ce5a4fad0b9bca6f7d29affafaca31ded19751;hb=d0ed135f8b494a0adf869a311c7bdc1d9d03f050;hp=e1fa02f8ba51757c0638adaed42c96a383c5726e;hpb=4a9d024d163ecb817de31600402d3df08e2aed2b;p=gnulib.git diff --git a/lib/idpriv-drop.c b/lib/idpriv-drop.c index e1fa02f8b..30ce5a4fa 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, 2010 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