@@ -49,8 +49,8 @@ static void makeAlterConfigCommand(PGconn *conn, const char *arrayitem,
49
49
const char * name2 );
50
50
static void dumpDatabases (PGconn * conn );
51
51
static void dumpTimestamp (char * msg );
52
- static void doShellQuoting (PQExpBuffer buf , const char * str );
53
- static void doConnStrQuoting (PQExpBuffer buf , const char * str );
52
+ static void appendShellString (PQExpBuffer buf , const char * str );
53
+ static void appendConnStrVal (PQExpBuffer buf , const char * str );
54
54
55
55
static int runPgDump (const char * dbname );
56
56
static void buildShSecLabels (PGconn * conn , const char * catalog_name ,
@@ -213,7 +213,7 @@ main(int argc, char *argv[])
213
213
case 'f' :
214
214
filename = pg_strdup (optarg );
215
215
appendPQExpBuffer (pgdumpopts , " -f " );
216
- doShellQuoting (pgdumpopts , filename );
216
+ appendShellString (pgdumpopts , filename );
217
217
break ;
218
218
219
219
case 'g' :
@@ -254,7 +254,7 @@ main(int argc, char *argv[])
254
254
255
255
case 'S' :
256
256
appendPQExpBuffer (pgdumpopts , " -S " );
257
- doShellQuoting (pgdumpopts , optarg );
257
+ appendShellString (pgdumpopts , optarg );
258
258
break ;
259
259
260
260
case 't' :
@@ -290,13 +290,13 @@ main(int argc, char *argv[])
290
290
291
291
case 2 :
292
292
appendPQExpBuffer (pgdumpopts , " --lock-wait-timeout " );
293
- doShellQuoting (pgdumpopts , optarg );
293
+ appendShellString (pgdumpopts , optarg );
294
294
break ;
295
295
296
296
case 3 :
297
297
use_role = pg_strdup (optarg );
298
298
appendPQExpBuffer (pgdumpopts , " --role " );
299
- doShellQuoting (pgdumpopts , use_role );
299
+ appendShellString (pgdumpopts , use_role );
300
300
break ;
301
301
302
302
default :
@@ -1699,9 +1699,9 @@ runPgDump(const char *dbname)
1699
1699
* string.
1700
1700
*/
1701
1701
appendPQExpBuffer (connstrbuf , "%s dbname=" , connstr );
1702
- doConnStrQuoting (connstrbuf , dbname );
1702
+ appendConnStrVal (connstrbuf , dbname );
1703
1703
1704
- doShellQuoting (cmd , connstrbuf -> data );
1704
+ appendShellString (cmd , connstrbuf -> data );
1705
1705
1706
1706
appendPQExpBuffer (cmd , "%s" , SYSTEMQUOTE );
1707
1707
@@ -1983,7 +1983,7 @@ constructConnStr(const char **keywords, const char **values)
1983
1983
appendPQExpBufferChar (buf , ' ' );
1984
1984
firstkeyword = false;
1985
1985
appendPQExpBuffer (buf , "%s=" , keywords [i ]);
1986
- doConnStrQuoting (buf , values [i ]);
1986
+ appendConnStrVal (buf , values [i ]);
1987
1987
}
1988
1988
1989
1989
connstr = pg_strdup (buf -> data );
@@ -2076,7 +2076,7 @@ dumpTimestamp(char *msg)
2076
2076
* string
2077
2077
*/
2078
2078
static void
2079
- doConnStrQuoting (PQExpBuffer buf , const char * str )
2079
+ appendConnStrVal (PQExpBuffer buf , const char * str )
2080
2080
{
2081
2081
const char * s ;
2082
2082
bool needquotes ;
@@ -2125,7 +2125,7 @@ doConnStrQuoting(PQExpBuffer buf, const char *str)
2125
2125
* there eventually leads to errors here.
2126
2126
*/
2127
2127
static void
2128
- doShellQuoting (PQExpBuffer buf , const char * str )
2128
+ appendShellString (PQExpBuffer buf , const char * str )
2129
2129
{
2130
2130
const char * p ;
2131
2131
0 commit comments