aboutsummaryrefslogtreecommitdiff
path: root/Linux-PAM/xtests/tst-pam_limits1.c
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 16:03:16 -0800
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 16:05:55 -0800
commit281e859131adad49301befbc50cfc5cd282c6937 (patch)
treece45ce19af410930b834390fb8a8256bcace5006 /Linux-PAM/xtests/tst-pam_limits1.c
parent9a4298687784e7812c8aeef6e0e97830febbf393 (diff)
parent10ac36fdc45532acb00ec47aab28b5cc6198820f (diff)
downloadpam-281e859131adad49301befbc50cfc5cd282c6937.tar.gz
pam-281e859131adad49301befbc50cfc5cd282c6937.tar.bz2
pam-281e859131adad49301befbc50cfc5cd282c6937.zip
New upstream version 0.99.9.0
Diffstat (limited to 'Linux-PAM/xtests/tst-pam_limits1.c')
-rw-r--r--Linux-PAM/xtests/tst-pam_limits1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Linux-PAM/xtests/tst-pam_limits1.c b/Linux-PAM/xtests/tst-pam_limits1.c
index cf025d3d..ed3d3679 100644
--- a/Linux-PAM/xtests/tst-pam_limits1.c
+++ b/Linux-PAM/xtests/tst-pam_limits1.c
@@ -98,6 +98,7 @@ main(int argc, char *argv[])
if (argc > 1 && strcmp (argv[1], "-d") == 0)
debug = 1;
+#ifdef RLIMIT_NICE
retval = pam_start("tst-pam_limits1", user, &conv, &pamh);
if (retval != PAM_SUCCESS)
{
@@ -145,4 +146,10 @@ main(int argc, char *argv[])
return 1;
}
return 0;
+#else
+ if (debug)
+ fprintf (stderr, "pam_limits1: RLIMIT_NICE does not exist)\n");
+
+ return 77;
+#endif
}