(path_concat): Rewrite to return new parameter.
authorJim Meyering <jim@meyering.net>
Sat, 20 Jul 1996 05:24:09 +0000 (05:24 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Jul 1996 05:24:09 +0000 (05:24 +0000)
commit5f79c9e91b5748a4dfe072a848573579d4ac839d
treec5408e2663efbf19178d8f1579cc69fbb31d796c
parent16c56c7d730046448cd8d4f498c4d82383d9e7b8
(path_concat): Rewrite to return new parameter.
(do_copy): Update uses of path_concat to use new parameter.
Use that new pointer to compute correct offset for make_path_private.
Before, cp --recursive --parents SRC DEST failed when SRC was
an absolute file name.  E.g.,
% cd /tmp; rm -rf d f; mkdir d; touch f; cp -PR /tmp/f d
cp: tmp: No such file or directory
Reported by Horst von Brand vonbrand@sleipnir.valparaiso.cl.
src/cp.c