Date: Thu, 7 Jan 2010 16:59:19 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 172735 for review Message-ID: <201001071659.o07GxJw3000731@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=172735 Change 172735 by rwatson@rwatson_fledge on 2010/01/07 16:59:06 Allow 0% minspace to be specified by the admin without crashing auditd. Submitted by: Andrew Pantyukhin <infofarmer@FreeBSD.org> Affected files ... .. //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#12 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#12 (text+ko) ==== @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#11 $ + * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#12 $ */ #include <sys/param.h> @@ -606,7 +606,7 @@ while (getacdir(cur_dir, MAXNAMLEN) >= 0) { if (statfs(cur_dir, &sfs) < 0) continue; /* XXX should warn */ - soft = (sfs.f_bfree < (sfs.f_blocks / (100 / auditd_minval))) ? + soft = (sfs.f_bfree < (sfs.f_blocks * auditd_minval / 100 )) ? 1 : 0; hard = (sfs.f_bfree < AUDIT_HARD_LIMIT_FREE_BLOCKS) ? 1 : 0; if (soft) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001071659.o07GxJw3000731>