* path-concat.c: Don't include assert.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2005 20:49:01 +0000 (20:49 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2005 20:49:01 +0000 (20:49 +0000)
commitfaba585229d62de8356611a2456dad597e4a26ef
tree343513aa041f9f49d76d698230417c4b8181a63d
parent77aaf95f7bef1bee2a14e63b6a10daa1b7a27a65
* path-concat.c: Don't include assert.h.
(path_concat): Remove assertion that would have triggered
for ABASE starting with more than one slash.
Reported by Andreas Schwab.

* path-concat.c (path_concat): Set *BASE_IN_RESULT
properly when ABASE is an absolute file name.
Correct the description of this function.
Include <assert.h>.
Add an assertion and a test driver.
This fixes a bug introduced on 2004-07-02.
Andreas Schwab reported the resulting failure of cp --parents:
http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
lib/path-concat.c