diff options
author | Jim Meyering <jim@meyering.net> | 1996-04-03 05:42:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-04-03 05:42:14 +0000 |
commit | 4325d27dddd3e17b4ec7a1baeef1820e073c8271 (patch) | |
tree | b0f58e47d824d2733f1e16544a70511861a0c27f /lib/safe-read.c | |
parent | 834a0cf02360aadeb03667fb4f74307d6ded65ca (diff) | |
download | coreutils-4325d27dddd3e17b4ec7a1baeef1820e073c8271.tar.xz |
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.
Diffstat (limited to 'lib/safe-read.c')
0 files changed, 0 insertions, 0 deletions