1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Argh! Fix a bogon. lim_cur() was returning the hard (max) limit rather

than the soft (cur) limit.

Submitted by:	bde
This commit is contained in:
John Baldwin 2004-02-11 18:04:13 +00:00
parent 1723bc36ef
commit e7a44cace2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125712

View File

@ -905,7 +905,7 @@ lim_cur(struct proc *p, int which)
struct rlimit rl;
lim_rlimit(p, which, &rl);
return (rl.rlim_max);
return (rl.rlim_cur);
}
/*