projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd8e01
)
cmdline: missing comparison in cmdlineParseRLimit()
author
Robert Swiecki
<robert@swiecki.net>
Sun, 8 Oct 2017 10:57:43 +0000
(12:57 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Sun, 8 Oct 2017 10:57:43 +0000
(12:57 +0200)
cmdline.c
patch
|
blob
|
history
diff --git
a/cmdline.c
b/cmdline.c
index e60e74c8e6ec2173baad347b7898ecdd3e6035c4..8a2ee6c2b5ab914d935db0752cfd75b2d4388690 100644
(file)
--- a/
cmdline.c
+++ b/
cmdline.c
@@
-264,7
+264,7
@@
__rlim64_t cmdlineParseRLimit(int res, const char *optarg, unsigned long mul)
if (strcasecmp(optarg, "def") == 0 || strcasecmp(optarg, "soft") == 0) {
return cur.rlim_cur;
}
- if (strcasecmp(optarg, "max") == 0 || strcasecmp(optarg, "hard")) {
+ if (strcasecmp(optarg, "max") == 0 || strcasecmp(optarg, "hard")
== 0
) {
return cur.rlim_max;
}
if (utilIsANumber(optarg) == false) {