[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getgroups typo
From: |
Jim Meyering |
Subject: |
getgroups typo |
Date: |
21 Jan 2001 23:59:43 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.96 |
Whoops. Another typo.
This one made it into fileutils-4.0.37, but luckily it doesn't matter
because getgroups isn't used in the fileutils.
Here's the patch and the change it induces in fileutils' configure file:
2001-01-21 Jim Meyering <address@hidden>
* acspecific.m4 (AC_TYPE_GETGROUPS): Quote square brackets.
=======================================
--- acspecific.m4.~2~ Sun Jan 21 10:47:54 2001
+++ acspecific.m4 Sun Jan 21 23:42:21 2001
@@ -345,18 +345,18 @@ AC_CACHE_CHECK(type of array argument to
int
main ()
{
- gid_t gidset[NGID];
+ gid_t gidset[[NGID]];
int i, n;
union { gid_t gval; long lval; } val;
val.lval = -1;
for (i = 0; i < NGID; i++)
- gidset[i] = val.gval;
+ gidset[[i]] = val.gval;
n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
gidset);
/* Exit non-zero if getgroups seems to require an array of ints. This
happens when gid_t is short but getgroups modifies an array of ints. */
- exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
+ exit ((n > 0 && gidset[[n]] != val.gval) ? 1 : 0);
}])],
[ac_cv_type_getgroups=gid_t],
[ac_cv_type_getgroups=int],
------------------------------------------
Index: configure
===================================================================
RCS file: /fetish/fileutils/configure,v
retrieving revision 1.400
diff -u -p -r1.400 configure
--- configure 2001/01/21 10:22:37 1.400
+++ configure 2001/01/21 22:45:02
@@ -1238,7 +1238,7 @@ fi
# Define the identity of the package.
PACKAGE=fileutils
-VERSION=4.0.37
+VERSION=4.0.38
cat >>confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
@@ -4352,18 +4352,18 @@ else
int
main ()
{
- gid_t gidsetNGID;
+ gid_t gidset[NGID];
int i, n;
union { gid_t gval; long lval; } val;
val.lval = -1;
for (i = 0; i < NGID; i++)
- gidseti = val.gval;
+ gidset[i] = val.gval;
n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
gidset);
/* Exit non-zero if getgroups seems to require an array of ints. This
happens when gid_t is short but getgroups modifies an array of ints. */
- exit ((n > 0 && gidsetn != val.gval) ? 1 : 0);
+ exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
}
_ACEOF
rm -f conftest$ac_exeext
- getgroups typo,
Jim Meyering <=