Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 1998 15:37:16 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, imp@FreeBSD.ORG
Subject:   Re: cvs commit: src/bin/cp utils.c src/bin/csh dir.c src/bin/pax ftree.c
Message-ID:  <199806090537.PAA01402@godzilla.zeta.org.au>

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.

Actually, readlink() never NUL-terminates, but some buggy applications
add their own NUL at the end of the path.  Most applications use a buffer
of size PATH_MAX, so it's not clear if there are any problems in practice.
Does nfs_readlink() actually work for foreign links of size PATH_MAX?

Bruce

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?199806090537.PAA01402>