Skip Menu |

This queue is for tickets about the Net-TFTPd CPAN distribution.

Report information
The Basics
Id: 108813
Status: new
Priority: 0/
Queue: Net-TFTPd

People
Owner: Nobody in particular
Requestors: Vegard.Vesterheim [...] uninett.no
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Wrong TFTP error code on permission problems
Date: Thu, 12 Nov 2015 13:58:00 +0100
To: bug-Net-TFTPd [...] rt.cpan.org
From: Vegard Vesterheim <vegard.vesterheim [...] uninett.no>
Whenever Net::TFPd is attempting to write a file without having proper permissions (to the file itself, or the directory), it seems that TFTP error code 3 (Disk full or allocation exceeded) is returned. The error message returned to the client is therefore confusing. Surely the error code 2 (Access violation) is more appropriate in this specific case. Looking at the code it seems that the openFile function should return more specific errors on filesystem-related errors. I am using Net-TFTPd-0.07. The Changelog for the later versions doesn't seem to address this issue. This is not a major issue, of course. I may come up with a small patch myself for this later. - Vegard V -