Author: eadler
Date: Sun Jan 28 00:26:05 2018
New Revision: 328502
URL: https://svnweb.freebsd.org/changeset/base/328502
Log:
MFC r328212:
limits(1): fix always true condition
Modified:
stable/11/usr.bin/limits/limits.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/limits/limits.c
==============================================================================
--- stable/11/usr.bin/limits/limits.c Sat Jan 27 23:40:41 2018
(r328501)
+++ stable/11/usr.bin/limits/limits.c Sun Jan 28 00:26:05 2018
(r328502)
@@ -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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"