+2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/groupmems.c: Remove isgroup(), which always returns TRUE.
+
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Reuse the functions from libmisc/list.c to deal
#define isroot() (getuid () == 0)
-static int isgroup (void)
-{
- gid_t g = getgid ();
- struct group *grp = getgrgid (g); /* local, no need for xgetgrgid */
-
- return TRUE;
-}
-
static char *whoami (void)
{
/* local, no need for xgetgrgid */
exit (EXIT_NOT_ROOT);
} else if (isroot () && NULL != thisgroup) {
name = thisgroup;
- } else if (!isgroup ()) {
- fputs (_("Group access is required\n"), stderr);
- exit (EXIT_NOT_EROOT);
} else if (NULL == (name = whoami ())) {
fputs (_("Not primary owner of current group\n"), stderr);
exit (EXIT_NOT_PRIMARY);