blob: 48111f16d6a5b5f4f32a2ccc60fd747ae7e6f394 (
plain) (
tree)
|
|
From 4bdefd16c6ea4b5b7c2b4dc2fccf5226401e13b7 Mon Sep 17 00:00:00 2001
From: Vincent Lefevre <vincent@vinc17.net>
Date: Fri, 16 Dec 2022 18:20:19 +0100
Subject: builtin: Actually accept ulimit -r
The original commit that added it supposes this works, but it only adds
it to the ulimit -a listing and the manual, but doesn't allow it as an
option.
Fixes: 46abc8c6d8a5 ("[BUILTIN] Add support for ulimit -r")
Link: https://bugs.debian.org/975326
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
src/miscbltin.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/miscbltin.c b/src/miscbltin.c
index 5ccbbcb..e553f9e 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -440,6 +440,9 @@ ulimitcmd(int argc, char **argv)
#endif
#ifdef RLIMIT_LOCKS
"w"
+#endif
+#ifdef RLIMIT_RTPRIO
+ "r"
#endif
)) != '\0')
switch (optc) {
--
cgit
|