← Commit list

cac0f5b7e

Denis Vlasenko
Denis Vlasenko
2008-09-25
FAILED Duration: 38s

Subject

return setgroups() decl to libbb, it is needed if we use libpwdgrp.

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/libbb.h+4 -2
@@ -80,8 +80,10 @@
#endif
/* Some libc's forget to declare these, do it ourself */
-extern char **environ;
+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
@@ -107,7 +109,7 @@ struct sysinfo {
unsigned long totalhigh; /* Total high memory size */
unsigned long freehigh; /* Available high memory size */
unsigned int mem_unit; /* Memory unit size in bytes */
- char _f[20 - 2*sizeof(long) - sizeof(int)]; /* Padding: libc5 uses this.. */
+ char _f[20 - 2 * sizeof(long) - sizeof(int)]; /* Padding: libc5 uses this.. */
};
int sysinfo(struct sysinfo* info);