Path-mangling logic was failing to account for paths containing mentions
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Aug 2004 20:20:47 +0000 (20:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Aug 2004 20:20:47 +0000 (20:20 +0000)
commitb06c90764526ccf291011ecbbcab49ae9729f65a
treefa8c61fb9f807e58fb098b9d565a698f0fde9fde
parent35f539b481b5524bd331cb7b75df848da51b43e5
Path-mangling logic was failing to account for paths containing mentions
of '.' or '..'.  Extend canonicalize_path() to trim off trailing occurrences
of these things, and use it to fix up paths where needed (which I think is
only after places where we trim the last path component, but maybe some
others will turn up).  Fixes Josh's complaint that './initdb' does not
work.
src/bin/initdb/initdb.c
src/port/exec.c
src/port/path.c