Include assert.h (disabled).
authorJim Meyering <jim@meyering.net>
Wed, 3 Apr 1996 05:42:14 +0000 (05:42 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 3 Apr 1996 05:42:14 +0000 (05:42 +0000)
commit4325d27dddd3e17b4ec7a1baeef1820e073c8271
treeb0f58e47d824d2733f1e16544a70511861a0c27f
parent834a0cf02360aadeb03667fb4f74307d6ded65ca
Include assert.h (disabled).
(path_concat): New function.
(do_copy): Use path_concat instead of open-coding part of its
functionality in two places.  This has the additional benefit
of avoiding forming destination names like `D//file' when the
destination directory D includes a trailing slash -- as would
happen when cp is used like this:
mkdir D; touch file D/file; cp -i file D/
Reported by François Pinard.
src/cp.c