From da3b2db4fe73343a0f31a16be490b13f10a515ef Mon Sep 17 00:00:00 2001 From: bdrewery Date: Mon, 17 Feb 2014 15:57:16 +0000 Subject: [PATCH] MFC r261401: Fix newsyslog(8) to use the size of the file instead of the blocks it takes on disk, as advertised in newsyslog.conf(5). Approved by: bapt (mentor, implicit) git-svn-id: svn://svn.freebsd.org/base/stable/10@262075 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/newsyslog/newsyslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index 66856d23a..ff9e937ee 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -2284,7 +2284,7 @@ sizefile(const char *file) if (stat(file, &sb) < 0) return (-1); - return (kbytes(dbtob(sb.st_blocks))); + return (kbytes(sb.st_size)); } /* -- 2.45.0