From 517d56b1d0f67dcf76710bc1e17b05518b8cabe6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 5 Mar 2014 02:29:58 +0100 Subject: missing: if RLIMIT_RTTIME is not defined by the libc, then we need a new define for the max number of rlimits, too --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/execute.c') diff --git a/src/core/execute.c b/src/core/execute.c index fec4b3b13a..ca807dc8cb 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -1676,7 +1676,7 @@ int exec_spawn(ExecCommand *command, if (apply_permissions) { - for (i = 0; i < RLIMIT_NLIMITS; i++) { + for (i = 0; i < _RLIMIT_MAX; i++) { if (!context->rlimit[i]) continue; -- cgit v1.2.3-54-g00ecf