"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "getgroups.c" between
rsync-3.2.1.tar.gz and rsync-3.2.2.tar.gz

About: rsync is a fast incremental file-copying tool for bringing remote (and local) files into sync.

getgroups.c  (rsync-3.2.1):getgroups.c  (rsync-3.2.2)
/* /*
* Print out the gids of all groups for the current user. This is like * Print out the gids of all groups for the current user. This is like
* `id -G` on Linux, but it's too hard to find a portable equivalent. * `id -G` on Linux, but it's too hard to find a portable equivalent.
* *
* Copyright (C) 2002 Martin Pool * Copyright (C) 2002 Martin Pool
* Copyright (C) 2003-2019 Wayne Davison * Copyright (C) 2003-2020 Wayne Davison
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as * it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, visit the http://fsf.org website. * with this program; if not, visit the http://fsf.org website.
*/ */
#include "rsync.h" #include "rsync.h"
int int main(UNUSED(int argc), UNUSED(char *argv[]))
main(UNUSED(int argc), UNUSED(char *argv[]))
{ {
int n, i; int n, i;
gid_t *list; gid_t *list;
gid_t gid = MY_GID(); gid_t gid = MY_GID();
int gid_in_list = 0; int gid_in_list = 0;
#ifdef HAVE_GETGROUPS #ifdef HAVE_GETGROUPS
if ((n = getgroups(0, NULL)) < 0) { if ((n = getgroups(0, NULL)) < 0) {
perror("getgroups"); perror("getgroups");
return 1; return 1;
 End of changes. 2 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)