initgroups.3 (58f0484fa251c266ede97b591b499fe3dd4f578e) initgroups.3 (bf5a138ec42c842d9402e45de366f7b71e267e42)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 53 unchanged lines hidden (view full) ---

62.Fn initgroups
63function
64returns \-1 if it was not invoked by the super-user.
65.Sh SEE ALSO
66.Xr setgroups 2 ,
67.Xr getgrouplist 3
68.Sh HISTORY
69The
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 53 unchanged lines hidden (view full) ---

62.Fn initgroups
63function
64returns \-1 if it was not invoked by the super-user.
65.Sh SEE ALSO
66.Xr setgroups 2 ,
67.Xr getgrouplist 3
68.Sh HISTORY
69The
70.Nm
70.Fn initgorups
71function appeared in
72.Bx 4.2 .
73.Sh BUGS
74The
75.Fn getgrouplist
76function called by
71function appeared in
72.Bx 4.2 .
73.Sh BUGS
74The
75.Fn getgrouplist
76function called by
77.Nm
77.Fn initgorups
78uses the routines based on
79.Xr getgrent 3 .
80If the invoking program uses any of these routines,
81the group structure will
82be overwritten in the call to
83.Fn initgroups .
78uses the routines based on
79.Xr getgrent 3 .
80If the invoking program uses any of these routines,
81the group structure will
82be overwritten in the call to
83.Fn initgroups .