mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-05-08 07:51:22 +03:00
"Access denied" in TFTP is "EACCESS" not "EACCES". Bleargh.
This commit is contained in:
parent
576277e880
commit
32b1e62a8c
2 changed files with 3 additions and 1 deletions
2
README
2
README
|
@ -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
|
||||||
|
|
|
@ -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 ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue