diff mbox series

miscbltin: ulimitcmd: actually accept -r

Message ID 20221216172019.upb425kmpx75epml@tarta.nabijaczleweli.xyz (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series miscbltin: ulimitcmd: actually accept -r | expand

Commit Message

Ahelenia Ziemiańska Dec. 16, 2022, 5:20 p.m. UTC
From: Vincent Lefevre <vincent@vinc17.net>

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: commit 46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4 ("[BUILTIN] Add
 support for ulimit -r")
Fixes: https://bugs.debian.org/975326
---
 src/miscbltin.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Herbert Xu Jan. 5, 2023, 9:45 a.m. UTC | #1
наб <nabijaczleweli@nabijaczleweli.xyz> wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 30 lines --]
> 
> From: Vincent Lefevre <vincent@vinc17.net>
> 
> 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: commit 46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4 ("[BUILTIN] Add
> support for ulimit -r")
> Fixes: https://bugs.debian.org/975326
> ---
> src/miscbltin.c | 3 +++
> 1 file changed, 3 insertions(+)

All applied.  Thanks.
diff mbox series

Patch

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) {