summaryrefslogtreecommitdiff
path: root/src/bin/initdb/initdb.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-06-10 22:26:24 +0000
committerBruce Momjian <bruce@momjian.us>2004-06-10 22:26:24 +0000
commit6cc4175b256cfc87411f9e704f9a34cf54f6b256 (patch)
tree7bdf7438dc345bd1154f30efd2cc097f3f0c0c4e /src/bin/initdb/initdb.c
parentd4117de50a78afb11d5b7004aa4e34540dc9193a (diff)
downloadpostgresql-6cc4175b256cfc87411f9e704f9a34cf54f6b256.tar.gz
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/bin/initdb/initdb.c')
-rw-r--r--src/bin/initdb/initdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 726e4658fd..3ded3d8775 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -39,7 +39,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.36 2004/06/10 16:35:16 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.37 2004/06/10 22:26:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1934,7 +1934,7 @@ main(int argc, char *argv[])
/* store binary directory */
strcpy(bin_path, backend_exec);
- *last_path_separator(bin_path) = '\0';
+ *last_dir_separator(bin_path) = '\0';
if (!share_path)
{