Date: Mon, 21 Jun 2004 08:01:16 +0000 (UTC) From: Brian Somers <brian@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/tftpd tftpd.c Message-ID: <200406210801.i5L81ImG029547@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2004-06-21 08:01:16 UTC FreeBSD src repository Modified files: libexec/tftpd tftpd.c Log: o Reduce path names in RRQ and WRQ packets by: Reducing "/+./" strings to "/" Reducing "/[^/]+/../" to "/" o Don't send an OACK when the result of the [RW]RQ is an error. These changes allow tftpd to interact with pxelinux.bin from the syslinux package. Whilst the path reducing code doesn't properly handle situations where the path component before the "/../" is a symlink to (say) ".", I would suggest that it does the right thing in terms of the clients perception of what their path string actually represents. This seems better than using realpath() and breaking environments where symlinks point outside of the directory hierarchy that tftpd is configured to allow. Revision Changes Path 1.31 +34 -2 src/libexec/tftpd/tftpd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406210801.i5L81ImG029547>