"Jordan Crouse"
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -151,7 +151,7 @@ typedef int arith_t; | |
| static char **t_wp; | |
| static struct t_op const *t_wp_op; | |
| - | static gid_t *group_array = NULL; |
| + | static gid_t *group_array; |
| static int ngroups; | |
| static enum token t_lex(char *s); | |
| @@ -547,8 +547,10 @@ static int test_eaccess(char *path, int mode) | |
| static void initialize_group_array(void) | |
| { | |
| ngroups = getgroups(0, NULL); | |
| - | group_array = xrealloc(group_array, ngroups * sizeof(gid_t)); |
| - | getgroups(ngroups, group_array); |
| + | if (ngroups > 0) { |
| + | group_array = xmalloc(ngroups * sizeof(gid_t)); |
| + | getgroups(ngroups, group_array); |
| + | } |
| } | |
| /* Return non-zero if GID is one that we have in our groups list. */ | |