[SCM] The rsync repository. - branch master updated
Rsync CVS commit messages
rsync-cvs at lists.samba.org
Mon Aug 1 16:03:26 UTC 2022
The branch, master has been updated
via 51fd4993 Avoid the getgroups program when cross-compiliing.
via e37bfdb4 Make sure sign is consistend in 2 gid comparisons.
from 3d7015af A few more minor changes.
https://git.samba.org/?p=rsync.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 51fd4993baa21f4df4b3b188899bd71fc062a5a7
Author: Wayne Davison <wayne at opencoder.net>
Date: Mon Aug 1 09:00:34 2022 -0700
Avoid the getgroups program when cross-compiliing.
commit e37bfdb445fc3ec500699fcee7c4ef8608938171
Author: Wayne Davison <wayne at opencoder.net>
Date: Mon Aug 1 08:29:15 2022 -0700
Make sure sign is consistend in 2 gid comparisons.
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 6 +++++-
uidlist.c | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/configure.ac b/configure.ac
index 37241637..d185b2d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -625,7 +625,11 @@ fi
AC_TYPE_UID_T
AC_CHECK_TYPES([mode_t,off_t,size_t,pid_t,id_t])
-AC_TYPE_GETGROUPS
+if test "$cross_compiling" = no; then
+ AC_TYPE_GETGROUPS
+else
+ AC_DEFINE([GETGROUPS_T],[gid_t],[Define to the type of elements in the array set by `getgroups'. Usually this is either `int' or `gid_t'.])
+fi
AC_CHECK_MEMBERS([struct stat.st_rdev,
struct stat.st_mtimensec,
struct stat.st_mtimespec.tv_nsec,
diff --git a/uidlist.c b/uidlist.c
index 6100b503..2b81ae87 100644
--- a/uidlist.c
+++ b/uidlist.c
@@ -210,7 +210,7 @@ static int is_in_group(gid_t gid)
ngroups = getgroups(ngroups, gidset);
/* The default gid might not be in the list on some systems. */
for (n = 0; n < ngroups; n++) {
- if (gidset[n] == our_gid)
+ if ((gid_t)gidset[n] == our_gid)
break;
}
if (n == ngroups)
@@ -229,7 +229,7 @@ static int is_in_group(gid_t gid)
last_in = gid;
for (n = 0; n < ngroups; n++) {
- if (gidset[n] == gid)
+ if ((gid_t)gidset[n] == gid)
return last_out = 1;
}
return last_out = 0;
--
The rsync repository.
More information about the rsync-cvs
mailing list