diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-06-10 22:26:24 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-06-10 22:26:24 +0000 |
commit | 6cc4175b256cfc87411f9e704f9a34cf54f6b256 (patch) | |
tree | 7bdf7438dc345bd1154f30efd2cc097f3f0c0c4e /src/backend/commands/dbcommands.c | |
parent | d4117de50a78afb11d5b7004aa4e34540dc9193a (diff) | |
download | postgresql-6cc4175b256cfc87411f9e704f9a34cf54f6b256.tar.gz postgresql-6cc4175b256cfc87411f9e704f9a34cf54f6b256.zip |
Attached is a patch that takes care of the PATHSEP issue. I made a more
extensive change then what was suggested. I found the file path.c that
contained a lot of "Unix/Windows" agnostic functions so I added a function
there instead and removed the PATHSEP declaration in exec.c altogether. All
to keep things from scattering all over the code.
I also took the liberty of changing the name of the functions
"first_path_sep" and "last_path_sep". Where I come from (and I'm apparently
not alone given the former macro name PATHSEP), they should be called
"first_dir_sep" and "last_dir_sep". The new function I introduced, that
actually finds path separators, is now the "first_path_sep". The patch
contains changes on all affected places of course.
I also changed the documentation on dynamic_library_path to reflect the
chagnes.
Thomas Hallgren
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 02c1bf8e204..337ec5395fb 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.134 2004/05/26 13:56:45 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.135 2004/06/10 22:26:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -941,7 +941,7 @@ resolve_alt_dbpath(const char *dbpath, Oid dboid) if (dbpath == NULL || dbpath[0] == '\0') return NULL; - if (first_path_separator(dbpath)) + if (first_dir_separator(dbpath)) { if (!is_absolute_path(dbpath)) ereport(ERROR, |