384 |
/* The use of `cvs admin -k' is unrestricted. However, any other |
/* The use of `cvs admin -k' is unrestricted. However, any other |
385 |
option is restricted if the group CVS_ADMIN_GROUP exists on the |
option is restricted if the group CVS_ADMIN_GROUP exists on the |
386 |
server. */ |
server. */ |
387 |
if ( |
/* This is only "secure" on the server, since the user could edit the |
388 |
# ifdef CLIENT_SUPPORT |
* RCS file on a local host, but some people like this kind of |
389 |
/* This is only "secure" on the server, since the user could edit the |
* check anyhow. The alternative would be to check only when |
390 |
* RCS file on a local host, but some people like this kind of |
* (server_active) rather than when not on the client. |
391 |
* check anyhow. The alternative would be to check only when |
*/ |
392 |
* (server_active) rather than when not on the client. |
if (!current_parsed_root->isremote && !only_k_option && |
393 |
*/ |
(grp = getgrnam(CVS_ADMIN_GROUP)) != NULL) |
|
!current_parsed_root->isremote && |
|
|
# endif /* CLIENT_SUPPORT */ |
|
|
!only_k_option |
|
|
&& (grp = getgrnam(CVS_ADMIN_GROUP)) != NULL) |
|
394 |
{ |
{ |
395 |
#ifdef HAVE_GETGROUPS |
#ifdef HAVE_GETGROUPS |
396 |
gid_t *grps; |
gid_t *grps; |