rmacklem 0b31143acc Fix mountd to handle getgrouplist() not returning groups[0] == groups[1].
Prior to r174547, getgrouplist(3) always returned a groups list with
element 0 and 1 set to the basegid argument, so long as ngroups was > 1.
Post-r174547 this is not the case. r328304 disabled the deduplication that
removed the duplicate, but the duplicate still does not occur unless the
group for a user in the password database is also entered in the group
database.
This patch fixes mountd so that it handles the case where a user specified
with the -maproot or -mapall exports option has a getgrouplist(3) groups
list where groups[0] != groups[1].
Found while testing another mountd patch.

MFC after:	2 weeks
2020-06-04 00:28:20 +00:00
..
2020-02-19 12:49:49 +00:00
2018-08-11 13:23:09 +00:00
2020-05-21 01:55:35 +00:00
2020-05-01 01:31:19 +00:00
2019-08-13 20:06:55 +00:00
2020-01-10 22:20:23 +00:00
2020-06-01 01:25:19 +00:00
2019-03-14 14:34:36 +00:00
2020-04-28 16:09:22 +00:00
2020-03-30 03:26:52 +00:00
2019-12-04 16:56:11 +00:00
2019-02-04 21:28:25 +00:00
2020-04-10 23:10:28 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2019-05-04 02:09:30 +00:00
2020-01-30 18:34:08 +00:00
2018-10-22 02:34:10 +00:00
2018-05-19 20:57:22 +00:00
2019-12-11 17:37:53 +00:00
2020-04-15 17:11:44 +00:00
2018-06-17 17:31:16 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2019-12-11 17:37:53 +00:00
2019-03-05 02:53:41 +00:00
2019-12-11 17:37:53 +00:00
2020-02-19 12:49:49 +00:00
2019-12-11 17:37:53 +00:00
2020-02-13 15:28:56 +00:00
2019-04-22 17:52:46 +00:00
2020-03-23 14:44:23 +00:00
2019-12-11 17:37:53 +00:00
2020-02-10 17:16:41 +00:00
2020-03-31 16:47:15 +00:00
2019-11-21 01:24:49 +00:00
2020-04-06 23:16:05 +00:00
2020-03-09 20:46:43 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00