Dash Archive mirror
 help / color / mirror / Atom feed
From: наб <nabijaczleweli@nabijaczleweli.xyz>
To: dash@vger.kernel.org
Subject: [PATCH] miscbltin: ulimitcmd: actually accept -r
Date: Fri, 16 Dec 2022 18:20:19 +0100	[thread overview]
Message-ID: <20221216172019.upb425kmpx75epml@tarta.nabijaczleweli.xyz> (raw)

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

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(+)

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2022-12-16 17:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16 17:20 наб [this message]
2022-12-17 15:17 ` [PATCH 2/1] man: document ulimit -w наб
2023-01-05  9:45 ` [PATCH] miscbltin: ulimitcmd: actually accept -r Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221216172019.upb425kmpx75epml@tarta.nabijaczleweli.xyz \
    --to=nabijaczleweli@nabijaczleweli.xyz \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).