From owner-cvs-all Mon Jun 8 20:40:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA16402 for cvs-all-outgoing; Mon, 8 Jun 1998 20:40:36 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA16303; Mon, 8 Jun 1998 20:40:10 -0700 (PDT) (envelope-from imp@FreeBSD.org) From: Warner Losh Received: (from imp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA16457; Mon, 8 Jun 1998 20:38:45 -0700 (PDT) Date: Mon, 8 Jun 1998 20:38:45 -0700 (PDT) Message-Id: <199806090338.UAA16457@freefall.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 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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