[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cvs commit: src/bin/cp utils.c src/bin/csh dir.c src/bin/pax ftree.c
- To: cvs-committers@xxxxxxxxxxx, cvs-all@xxxxxxxxxxx, cvs-bin@xxxxxxxxxxx
- Subject: cvs commit: src/bin/cp utils.c src/bin/csh dir.c src/bin/pax ftree.c
- From: Warner Losh <imp@xxxxxxxxxxx>
- Date: Mon, 8 Jun 1998 20:38:45 -0700 (PDT)
- Sender: owner-cvs-bin@xxxxxxxxxxx
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