"Access denied" in TFTP is "EACCESS" not "EACCES". Bleargh.

This commit is contained in:
hpa 2001-07-26 22:49:04 +00:00
parent 576277e880
commit 32b1e62a8c
2 changed files with 3 additions and 1 deletions

2
README
View file

@ -36,6 +36,8 @@ Changes in 0.19:
Add support for debugging remapping rulefiles; if logging with Add support for debugging remapping rulefiles; if logging with
-vvv tftpd will log all rules actions. -vvv tftpd will log all rules actions.
Correct the error code issued by an "abort" rule.
Changes in 0.18: Changes in 0.18:
Support (almost) arbitrary filename remappings via regular Support (almost) arbitrary filename remappings via regular

View file

@ -472,7 +472,7 @@ tftp(struct tftphdr *tp, int size)
exit(0); exit(0);
} }
if ( !(filename = (*pf->f_rewrite)(origfilename, tp->th_opcode)) ) { if ( !(filename = (*pf->f_rewrite)(origfilename, tp->th_opcode)) ) {
nak(EACCES); /* File denied by mapping rule */ nak(EACCESS); /* File denied by mapping rule */
exit(0); exit(0);
} }
if ( verbosity >= 1 ) { if ( verbosity >= 1 ) {