← Commit list

af6cca50a

Denis Vlasenko
Denis Vlasenko
2008-05-25
FAILED Duration: 21s

Subject

move setgroups definition to libbb.h so that it no longer inadvertently get hidden attribute

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/grp_.h+0 -5
@@ -36,11 +36,6 @@ struct group {
char **gr_mem; /* Member list. */
};
-/* We don't reimplement this, just supplying prototype */
-/* The function itself is in libc */
-/* Set the group set for the current user to GROUPS (N of them). */
-extern int setgroups(size_t __n, __const gid_t *__groups);
-
#define setgrent bb_internal_setgrent
#define endgrent bb_internal_endgrent
include/libbb.h+3 -1
@@ -79,9 +79,11 @@
# endif
#endif
-/* Some libc's forget to declare these, help them */
+/* Some libc's forget to declare these, do it ourself */
extern char **environ;
+/* Set the group set for the current user to GROUPS (N of them). */
+int setgroups(size_t n, const gid_t *groups);
#if defined(__GLIBC__) && __GLIBC__ < 2
int vdprintf(int d, const char *format, va_list ap);
#endif