summaryrefslogtreecommitdiff
path: root/system/dash/ulimit-dash-r.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/dash/ulimit-dash-r.patch')
-rw-r--r--system/dash/ulimit-dash-r.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/system/dash/ulimit-dash-r.patch b/system/dash/ulimit-dash-r.patch
new file mode 100644
index 000000000..48111f16d
--- /dev/null
+++ b/system/dash/ulimit-dash-r.patch
@@ -0,0 +1,33 @@
+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
+