cmdline: missing comparison in cmdlineParseRLimit()

This commit is contained in:
Robert Swiecki 2017-10-08 12:57:43 +02:00
parent acd8e01060
commit d20ffb98f6

View File

@ -264,7 +264,7 @@ __rlim64_t cmdlineParseRLimit(int res, const char *optarg, unsigned long mul)
if (strcasecmp(optarg, "def") == 0 || strcasecmp(optarg, "soft") == 0) { if (strcasecmp(optarg, "def") == 0 || strcasecmp(optarg, "soft") == 0) {
return cur.rlim_cur; 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; return cur.rlim_max;
} }
if (utilIsANumber(optarg) == false) { if (utilIsANumber(optarg) == false) {