Add a gid to the list of gids. Only called on sending side. */
| 355 | |
| 356 | /* Add a gid to the list of gids. Only called on sending side. */ |
| 357 | const char *add_gid(gid_t gid) |
| 358 | { |
| 359 | struct idlist *list; |
| 360 | struct idlist *node; |
| 361 | union name_or_id noiu; |
| 362 | |
| 363 | for (list = gidlist; list; list = list->next) { |
| 364 | if (id_eq_gid(list->id, gid)) |
| 365 | return NULL; |
| 366 | } |
| 367 | |
| 368 | noiu.name = gid_to_group(gid); |
| 369 | node = add_to_list(&gidlist, gid, noiu, 0, 0); |
| 370 | return node->u.name; |
| 371 | } |
| 372 | |
| 373 | static void send_one_name(int f, id_t id, const char *name) |
| 374 | { |
no test coverage detected