tag 706460 minor
thanks

On Tue, Apr 30, 2013 at 06:24:13PM +0200, Marek Grzybowski wrote:
> I'm not 100% percent sure, i'm just guessing
> after check 'int' in global limits.h match exactly problematic value :
> 
> /etc/logrotate.d/nginx:
> /var/log/nginx/*.log {
>         size 2147483646

Don't do that, then. :-)

Use the shorthand of "2G" instead.  logrotate parses the number part
using strtoul() which may indeed yield a 32 bit intermediate value,
even on 64 bit architectures.

I wonder whether using strtoull() would break the BSD and Hurd ports...

-- 
Paul Martin <[email protected]>


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to