aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/limits
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-01-21 08:48:26 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-01-21 08:48:26 +0000
commit7275057a5edbc84064aad18ab09d0b0976b23cd8 (patch)
tree1e065727bf506bbefae53e9eac4c5197fac3c57a /usr.bin/limits
parent4f8f1c798e87500612945f5f8b4726e3603d4797 (diff)
downloadsrc-7275057a5edbc84064aad18ab09d0b0976b23cd8.tar.gz
src-7275057a5edbc84064aad18ab09d0b0976b23cd8.zip
Notes
Diffstat (limited to 'usr.bin/limits')
-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 cd242bc68784..c0c652d065ac 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) {