chiark / gitweb /
busname: add parser for bus name policies
[elogind.git] / src / core / execute.c
index fec4b3b13a0cfe2f714ccd818bc13d58ea61fcc1..ca807dc8cb2fa86ff9b2afbba8dc9ecc70d88fe8 100644 (file)
@@ -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;