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 -