<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/lib/libutil, branch stable/7</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2014-11-01T13:45:01Z</updated>
<entry>
<title>MFC r273837:</title>
<updated>2014-11-01T13:45:01Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2014-11-01T13:45:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7c015fba249b3f87bce0d14efbd0573391921836'/>
<id>urn:sha1:7c015fba249b3f87bce0d14efbd0573391921836</id>
<content type='text'>
Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by:	kib
</content>
</entry>
<entry>
<title>MFC r231306:</title>
<updated>2012-03-19T01:52:09Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-03-19T01:52:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=96195361a293ff87e22f985e9d9a3cd6bfeadeef'/>
<id>urn:sha1:96195361a293ff87e22f985e9d9a3cd6bfeadeef</id>
<content type='text'>
	Fix NULL ptr dereference in setusercontext if pwd is null,
	LOGIN_SETPRIORITY is set, and setting the priority (rtprio or
	setpriority) fails.

PR:		kern/164238
Approved by:	cperciva
</content>
</entry>
<entry>
<title>MFC r219939:</title>
<updated>2011-04-22T00:32:16Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2011-04-22T00:32:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e566d55e53eed5fcd2123a40df356b15b8ceb2e4'/>
<id>urn:sha1:e566d55e53eed5fcd2123a40df356b15b8ceb2e4</id>
<content type='text'>
humanize_number(3) multiply the input number by 100, which could cause an
integer overflow when the input is very large (for example, 100 Pi would
become about 10 Ei which exceeded signed int64_t).

Solve this issue by splitting the division into two parts and avoid the
multiplication.

PR:		bin/146205
Reviewed by:	arundel
</content>
</entry>
<entry>
<title>MFC 219850:</title>
<updated>2011-04-06T11:14:42Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2011-04-06T11:14:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5006699767d2c4ef2669a8b7003d80e2613df8bd'/>
<id>urn:sha1:5006699767d2c4ef2669a8b7003d80e2613df8bd</id>
<content type='text'>
s/buffer/buf as is used in the code.
</content>
</entry>
<entry>
<title>MFC r211393 (by des):</title>
<updated>2010-09-24T23:48:29Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2010-09-24T23:48:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=d3991b56daea8781785dcea50680a8a815a26330'/>
<id>urn:sha1:d3991b56daea8781785dcea50680a8a815a26330</id>
<content type='text'>
In setusercontext(), do not apply user settings unless running as the
user in question (usually but not necessarily because we were called
with LOGIN_SETUSER).  This plugs a hole where users could raise their
resource limits and expand their CPU mask.

Approved by:	des
</content>
</entry>
<entry>
<title>Merge from head to stable/7:</title>
<updated>2009-12-18T20:08:29Z</updated>
<author>
<name>Sean Farley</name>
<email>scf@FreeBSD.org</email>
</author>
<published>2009-12-18T20:08:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=d7bd99c6bd66bfc410148885364e15c4656cc514'/>
<id>urn:sha1:d7bd99c6bd66bfc410148885364e15c4656cc514</id>
<content type='text'>
r200423:
Remove a dead store.
</content>
</entry>
<entry>
<title>MFC: Note that these routines return NULL on failure and that the</title>
<updated>2009-06-16T13:39:09Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-06-16T13:39:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e7903471b8e4c19d8e1ba122f238820e78ea1d57'/>
<id>urn:sha1:e7903471b8e4c19d8e1ba122f238820e78ea1d57</id>
<content type='text'>
structures they return arrays of are defined in &lt;sys/user.h&gt;.
</content>
</entry>
<entry>
<title>MFC: Add manpages for kinfo_getfile() and kinfo_getvmmap().</title>
<updated>2009-06-12T15:53:56Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-06-12T15:53:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=8323fbd2f972410542be8da011f653e3a727497b'/>
<id>urn:sha1:8323fbd2f972410542be8da011f653e3a727497b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge r173719: constify expand_number(3).</title>
<updated>2009-06-10T14:52:34Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2009-06-10T14:52:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=bd9e1206cd4b616bbe06519081b271b3b2a7850f'/>
<id>urn:sha1:bd9e1206cd4b616bbe06519081b271b3b2a7850f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge r180815,184081-184088,184091-184094,184634,184676-184677, 185277,</title>
<updated>2009-06-09T01:43:58Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2009-06-09T01:43:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=68e0921b95fcaad0e6a06f28a077df4863a193ee'/>
<id>urn:sha1:68e0921b95fcaad0e6a06f28a077df4863a193ee</id>
<content type='text'>
93589,193591: style and warning cleanups, libutil is now WARNS=6 clean.
Also merged setclasscpumask(), which would have been a b***h to isolate
from the rest of the changes.  AFAICT, nobody uses it anyway.
</content>
</entry>
</feed>
