[syslinux] PXE Error Reporting

Sebastian Herbszt herbszt at gmx.de
Tue Jan 20 15:40:43 PST 2015


H. Peter Anvin wrote:
> On 01/18/2015 03:23 PM, Sebastian Herbszt wrote:
> > 
> > --- tftp-hpa-5.2/tftpd/tftpd.c.orig	2015-01-16 21:45:30.790798281 +0100
> > +++ tftp-hpa-5.2/tftpd/tftpd.c	2015-01-18 23:44:28.031177383 +0100
> > @@ -1504,6 +1504,8 @@ static int validate_access(char *filenam
> >              return ENOSPACE;
> >          case EEXIST:
> >              return EEXISTS;
> > +        case EACCES:
> > +            return EACCESS;
> >          default:
> >              return errno + 100;
> >          }
> 
> I can't remember, but I have a vague recollection that someone
> specifically requested that EACCES be treated the same as ENOENT...

Are you talking about syslinux or tftp-hpa?
The above patch is for the latter and it (just) changes

tftp> get bar
Error code 0: Permission denied

to

tftp> get bar
Error code 2: Access denied

Sebastian


More information about the Syslinux mailing list