mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
limits(1): fix always true condition
Reviewed by: imp MFC After: 1 week
This commit is contained in:
parent
4f8f1c798e
commit
7275057a5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328212
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user