Bug#436728: cron-apt: tmpdir size overflows if block of 4096

2007-08-08 Thread Ola Lundqvist
Hi again I decided to upload anyway. I'm pretty sure that the solution works and it was not a problem for me to use it, so it is at least not (that much) worse than before. Please tell me if you still have problems. Regards, // Ola On Wed, Aug 08, 2007 at 01:59:46PM -0400, Paolo Benvenuto wrot

Bug#436728: cron-apt: tmpdir size overflows if block of 4096

2007-08-08 Thread Ola Lundqvist
Hi Paolo On Wed, Aug 08, 2007 at 01:59:46PM -0400, Paolo Benvenuto wrote: > Package: cron-apt > Version: 0.6.0 > Severity: normal > > I have block size of 4096, and the calculation of tmpdir size overflows, > giving a negative value > > if [ "$(( $(stat --file-system --format=%S $TMPDIR) *

Bug#436728: cron-apt: tmpdir size overflows if block of 4096

2007-08-08 Thread Paolo Benvenuto
Package: cron-apt Version: 0.6.0 Severity: normal I have block size of 4096, and the calculation of tmpdir size overflows, giving a negative value if [ "$(( $(stat --file-system --format=%S $TMPDIR) * $(stat --file-system --format=%a $TMPDIR) / 1024 ))" -lt "$MINTMPDIRSIZE" ]; the 1st. ele