Add a uid to the list of uids. Only called on sending side. */
| 338 | |
| 339 | /* Add a uid to the list of uids. Only called on sending side. */ |
| 340 | const char *add_uid(uid_t uid) |
| 341 | { |
| 342 | struct idlist *list; |
| 343 | struct idlist *node; |
| 344 | union name_or_id noiu; |
| 345 | |
| 346 | for (list = uidlist; list; list = list->next) { |
| 347 | if (id_eq_uid(list->id, uid)) |
| 348 | return NULL; |
| 349 | } |
| 350 | |
| 351 | noiu.name = uid_to_user(uid); |
| 352 | node = add_to_list(&uidlist, uid, noiu, 0, 0); |
| 353 | return node->u.name; |
| 354 | } |
| 355 | |
| 356 | /* Add a gid to the list of gids. Only called on sending side. */ |
| 357 | const char *add_gid(gid_t gid) |
no test coverage detected