summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2022-12-16 18:20:19 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2023-01-05 17:41:20 +0800
commit4bdefd16c6ea4b5b7c2b4dc2fccf5226401e13b7 (patch)
tree6ac0d5fb5c6e363fa8f6ec50b802622e726a96ab
parent2beac674c4862a7129eca3a8cb7d27cee7ff667b (diff)
downloaddash-4bdefd16c6ea4b5b7c2b4dc2fccf5226401e13b7.tar.gz
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>
-rw-r--r--src/miscbltin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/miscbltin.c b/src/miscbltin.c
index 5ccbbcb..e553f9e 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -441,6 +441,9 @@ ulimitcmd(int argc, char **argv)
#ifdef RLIMIT_LOCKS
"w"
#endif
+#ifdef RLIMIT_RTPRIO
+ "r"
+#endif
)) != '\0')
switch (optc) {
case 'H':