summaryrefslogtreecommitdiff
path: root/Linux-PAM/xtests/tst-pam_group1.c
diff options
context:
space:
mode:
Diffstat (limited to 'Linux-PAM/xtests/tst-pam_group1.c')
-rw-r--r--Linux-PAM/xtests/tst-pam_group1.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Linux-PAM/xtests/tst-pam_group1.c b/Linux-PAM/xtests/tst-pam_group1.c
index e4e3ca48..ca0c2ac9 100644
--- a/Linux-PAM/xtests/tst-pam_group1.c
+++ b/Linux-PAM/xtests/tst-pam_group1.c
@@ -36,10 +36,10 @@
Check the following line in group.conf:
- tst-pam_group1;*;tstpamgrp;Al0000-2400;tstpamgrp
+ tst-pam_group1;*;tstpamgrp;Al0000-2400;tstpamgrpg
- pam_group should add group tstpamgrp to user tstpamgrp, but not
+ pam_group should add group tstpamgrpg to user tstpamgrp, but not
to tstpamgrp2.
*/
@@ -49,6 +49,7 @@
#include <grp.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
@@ -193,7 +194,7 @@ main(int argc, char *argv[])
if (argc > 1 && strcmp (argv[1], "-d") == 0)
debug = 1;
- grp = getgrnam ("tstpamgrp");
+ grp = getgrnam ("tstpamgrpg");
if (grp == NULL)
return 1;
grpid = grp->gr_gid;