summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2018-01-28 00:26:05 +0000
committereadler <eadler@FreeBSD.org>2018-01-28 00:26:05 +0000
commit409593646fda49d8c0be05fd18b5df25e170693a (patch)
tree28e7ba5c69f0dfd114b607747542a9fb75ebe65d /usr.bin
parent1462b56990b0faeeb7d38080c9eecd0752da03f0 (diff)
downloadFreeBSD-src-409593646fda49d8c0be05fd18b5df25e170693a.zip
FreeBSD-src-409593646fda49d8c0be05fd18b5df25e170693a.tar.gz
MFC r328212:
limits(1): fix always true condition
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/limits/limits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/limits/limits.c b/usr.bin/limits/limits.c
index cd242bc..c0c652d 100644
--- a/usr.bin/limits/limits.c
+++ b/usr.bin/limits/limits.c
@@ -509,7 +509,7 @@ main(int argc, char *argv[])
for (rcswhich = 0; rcswhich < RLIM_NLIMITS; rcswhich++) {
if (doall || num_limits == 0 || which_limits[rcswhich] != 0) {
- if (which_limits[rcswhich] == ANY || which_limits[rcswhich])
+ if (which_limits[rcswhich] == ANY)
which_limits[rcswhich] = type;
if (shellparm[shelltype].lprm[rcswhich].pfx) {
if (shellparm[shelltype].both && limits[rcswhich].rlim_cur == limits[rcswhich].rlim_max) {
OpenPOWER on IntegriCloud