X-Git-Url: https://git.distorted.org.uk/~mdw/checkpath/blobdiff_plain/194363d495588e161e933f4254d3a85ad441ff2b..9c42854ddcd101d7c18dbe762afeed91fca5c477:/checkpath.c diff --git a/checkpath.c b/checkpath.c index b6ee94e..a396d14 100644 --- a/checkpath.c +++ b/checkpath.c @@ -7,7 +7,7 @@ * (c) 1999 Mark Wooding */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of chkpath. * @@ -15,12 +15,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * chkpath is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with chkpath; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -28,6 +28,8 @@ /*----- Header files ------------------------------------------------------*/ +#include "config.h" + #include #include #include @@ -499,7 +501,7 @@ void checkpath_setids(struct checkpath *cp) cp->cp_uid = getuid(); n = getgroups(sizeof(cp->cp_gid) / sizeof(cp->cp_gid[0]), cp->cp_gid); - + for (i = 0; i < n; i++) { if (cp->cp_gid[i] == g) goto gid_ok;