"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

View file

@ -472,7 +472,7 @@ tftp(struct tftphdr *tp, int size)
exit(0);
}
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);
}
if ( verbosity >= 1 ) {