Skip site navigation (1) Skip section navigation (2)

pgsql-server: Path-mangling logic was failing to account for paths

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Path-mangling logic was failing to account for paths
Date: 2004-08-09 20:20:49
Message-ID: 20040809202049.3B39614B2800@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql-server/src/port:
        exec.c (r1.20 -> r1.21)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/port/exec.c.diff?r1=1.20&r2=1.21)
        path.c (r1.26 -> r1.27)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/port/path.c.diff?r1=1.26&r2=1.27)
    pgsql-server/src/bin/initdb:
        initdb.c (r1.46 -> r1.47)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/bin/initdb/initdb.c.diff?r1=1.46&r2=1.47)

pgsql-committers by date

Next:From: Tom LaneDate: 2004-08-09 20:28:50
Subject: pgsql-server: syslogger.c needs <sys/time.h> on some platforms, per Greg
Previous:From: Tom LaneDate: 2004-08-09 16:26:09
Subject: pgsql-server: When expanding %p in archive_command or restore_command,

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group