equal
deleted
inserted
replaced
1 /* |
1 /* |
2 ** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for |
2 ** Copyright 1998 - 2000 Double Precision, Inc. See COPYING for |
3 ** distribution information. |
3 ** distribution information. |
4 */ |
4 */ |
5 |
5 |
6 #if HAVE_CONFIG_H |
6 #if HAVE_CONFIG_H |
7 #include "config.h" |
7 #include "config.h" |
10 #if HAVE_UNISTD_H |
10 #if HAVE_UNISTD_H |
11 #include <unistd.h> |
11 #include <unistd.h> |
12 #endif |
12 #endif |
13 #include <stdio.h> |
13 #include <stdio.h> |
14 #include <stdlib.h> |
14 #include <stdlib.h> |
|
15 #include <string.h> |
15 #include <grp.h> |
16 #include <grp.h> |
16 #include <pwd.h> |
17 #include <pwd.h> |
17 #include <errno.h> |
18 #include <errno.h> |
18 |
19 |
19 #include "auth.h" |
20 #include "auth.h" |
20 |
21 |
21 static const char rcsid[]="$Id: changeuidgid.c,v 1.1 2000/04/13 17:55:05 bruce Exp $"; |
22 static const char rcsid[]="$Id: changeuidgid.c,v 1.2 2000/12/18 20:20:10 bruce Exp $"; |
22 |
23 |
23 void authchangegroup(gid_t gid) |
24 void authchangegroup(gid_t gid) |
24 { |
25 { |
25 if ( setgid(gid)) |
26 if ( setgid(gid)) |
26 { |
27 { |