pure-ftpd leaks space in quota calculation

Bug #663849 reported by Vihai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pure-ftpd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: pure-ftpd

pure-ftpd-postgresql 1.0.28-2 on maverick on x86-64

(I'm actually using pure-ftpd-postgresql but it shouldn't be relevant.)

I'm using quota support. The issues shows up when a rename overwrites an existing file.

# cat .ftpquota
0 0

> put test1
100000 bytes transferred in 3 seconds (36.5K/s)

# cat .ftpquota
1 100000

> put test2
1000 bytes transferred

# cat .ftpquota
2 101000

> mv test2 test1
rename successful

# cat .ftpquota
2 2000

It appears that instead of subtracting the size of the overwritten file, the size of overwriting file is subtracted and the size of the overwritten file is added again.

Tags: maverick
Revision history for this message
Frank Denis (j-pureftpd) wrote :

Hello,

This bug has been fixed in pure-ftpd 1.0.35.

Revision history for this message
Stefan Hornburg (Racke) (racke) wrote : Re: [Bug 663849] Re: pure-ftpd leaks space in quota calculation

On 12/03/2011 05:55 AM, Frank Denis wrote:
> Hello,
>
> This bug has been fixed in pure-ftpd 1.0.35.
>

Which has been uploaded to Debian today.

Regards
            Racke

--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.