prlimit: show all limits if called without options
PATCH 1/15 prlimit: show all limits if called without options
[PATCH 01/15] prlimit: show all limits if called without options
Fix option parsing: prlimit ran into usage() if called without arguments which should only be done for surplus arguments. Instead, it should display all limits.
Signed-off-by Bernhard Voelker <[email protected]>
--- sys-utils/prlimit.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
sys-utils/prlimit.c +1 -2
@@ -581,8 +581,7 @@ int main(int argc, char **argv)break ; } } - -if (argc ==1 ) +if (argc > optind)usage (stderr);if (!ncolumns) {
Quoted 2 lines · Bernhard Voelker
sys-utils/prlimit.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com