Fix cp so that `cp -r DIR1/ DIR2' works once again.
authorJim Meyering <jim@meyering.net>
Sun, 23 Jul 2000 10:54:01 +0000 (10:54 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 23 Jul 2000 10:54:01 +0000 (10:54 +0000)
commit9993d4141c63ff93bca1a30287016b71cc00e427
tree2303a281c79af95b8d155a3c2fab616ab0e542a1
parente66e1f94bb28fd1017de6f38533e52822926e9b1
Fix cp so that `cp -r DIR1/ DIR2' works once again.
(ASSIGN_BASENAME_STRDUPA): New macro.
(do_copy): Use it here (so we always strip trailing slashes before
calling base_name).
src/cp.c