-
- Downloads
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
Showing
- doc/src/sgml/runtime.sgml 8 additions, 3 deletionsdoc/src/sgml/runtime.sgml
- src/backend/commands/dbcommands.c 2 additions, 2 deletionssrc/backend/commands/dbcommands.c
- src/backend/utils/fmgr/dfmgr.c 11 additions, 7 deletionssrc/backend/utils/fmgr/dfmgr.c
- src/bin/initdb/initdb.c 2 additions, 2 deletionssrc/bin/initdb/initdb.c
- src/include/port.h 16 additions, 2 deletionssrc/include/port.h
- src/interfaces/ecpg/ecpglib/connect.c 2 additions, 2 deletionssrc/interfaces/ecpg/ecpglib/connect.c
- src/interfaces/ecpg/preproc/ecpg.c 2 additions, 2 deletionssrc/interfaces/ecpg/preproc/ecpg.c
- src/interfaces/libpq/fe-connect.c 2 additions, 2 deletionssrc/interfaces/libpq/fe-connect.c
- src/port/exec.c 4 additions, 11 deletionssrc/port/exec.c
- src/port/path.c 36 additions, 17 deletionssrc/port/path.c
Loading
Please register or sign in to comment