Date: Mon, 8 Jun 1998 20:38:45 -0700 (PDT) From: Warner Losh <imp@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/cp utils.c src/bin/csh dir.c src/bin/pax ftree.c Message-ID: <199806090338.UAA16457@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 1998/06/08 20:38:44 PDT
Modified files:
bin/cp utils.c
bin/csh dir.c
bin/pax ftree.c
Log:
Make sure we pass the length - 1 to readlink, since it adds its own
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt
Revision Changes Path
1.19 +2 -2 src/bin/cp/utils.c
1.8 +3 -5 src/bin/csh/dir.c
1.11 +3 -3 src/bin/pax/ftree.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806090338.UAA16457>
