From 32b1e62a8cf0aae58e41d99626ceb5eb8519dca8 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 26 Jul 2001 22:49:04 +0000 Subject: [PATCH] "Access denied" in TFTP is "EACCESS" not "EACCES". Bleargh. --- README | 2 ++ tftpd/tftpd.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README b/README index 9f94db6..d44a3d1 100644 --- a/README +++ b/README @@ -36,6 +36,8 @@ Changes in 0.19: Add support for debugging remapping rulefiles; if logging with -vvv tftpd will log all rules actions. + Correct the error code issued by an "abort" rule. + Changes in 0.18: Support (almost) arbitrary filename remappings via regular diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c index d99b3f1..e97d0af 100644 --- a/tftpd/tftpd.c +++ b/tftpd/tftpd.c @@ -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 ) {