Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4262278

Browse files
committed
Rename function to first_path_var_separator() to clarify it works with
path variables, not directory paths.
1 parent bffb638 commit 4262278

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/backend/utils/fmgr/dfmgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ find_in_dynamic_libpath(const char *basename)
610610
char *mangled;
611611
char *full;
612612

613-
piece = first_path_separator(p);
613+
piece = first_path_var_separator(p);
614614
if (piece == p)
615615
ereport(ERROR,
616616
(errcode(ERRCODE_INVALID_NAME),

src/include/port.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern bool pg_set_block(pgsocket sock);
3636

3737
extern char *first_dir_separator(const char *filename);
3838
extern char *last_dir_separator(const char *filename);
39-
extern char *first_path_separator(const char *pathlist);
39+
extern char *first_path_var_separator(const char *pathlist);
4040
extern void join_path_components(char *ret_path,
4141
const char *head, const char *tail);
4242
extern void canonicalize_path(char *path);

src/port/exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ find_my_exec(const char *argv0, char *retpath)
168168
else
169169
startp = endp + 1;
170170

171-
endp = first_path_separator(startp);
171+
endp = first_path_var_separator(startp);
172172
if (!endp)
173173
endp = startp + strlen(startp); /* point to end */
174174

src/port/path.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ first_dir_separator(const char *filename)
9898
}
9999

100100
/*
101-
* first_path_separator
101+
* first_path_var_separator
102102
*
103103
* Find the location of the first path separator (i.e. ':' on
104104
* Unix, ';' on Windows), return NULL if not found.
105105
*/
106106
char *
107-
first_path_separator(const char *pathlist)
107+
first_path_var_separator(const char *pathlist)
108108
{
109109
const char *p;
110110

0 commit comments

Comments
 (0)