Commit 935bf3f752b0f6d7643aa0ef789aac5afe66d1b0

Paul Eggert 2018-01-14T13:27:20

filenamecat: make base a suffix of result * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove. (mfile_name_concat): Always make BASE a suffix of the result, as cp expects this. To implement this, separate with '.' instead of '/' in some rare cases. Clarify spec to say ./BASE not BASE. * tests/test-filenamecat.c (main): Adjust tests to match current behavior. Check that BASE_IN_RESULT points to a copy of BASE and is a suffix of the resultk, and that DIR is a prefix of the result that is no longer than the prefix indicated by BASE_IN_RESULT.