svn commit: r262075 - stable/10/usr.sbin/newsyslog
Bryan Drewery
bdrewery at FreeBSD.org
Mon Feb 17 15:57:17 UTC 2014
Author: bdrewery
Date: Mon Feb 17 15:57:16 2014
New Revision: 262075
URL: http://svnweb.freebsd.org/changeset/base/262075
Log:
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)
Modified:
stable/10/usr.sbin/newsyslog/newsyslog.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/newsyslog/newsyslog.c
==============================================================================
--- stable/10/usr.sbin/newsyslog/newsyslog.c Mon Feb 17 15:51:19 2014 (r262074)
+++ stable/10/usr.sbin/newsyslog/newsyslog.c Mon Feb 17 15:57:16 2014 (r262075)
@@ -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));
}
/*
More information about the svn-src-stable
mailing list