@@ -48,8 +48,8 @@ static void makeAlterConfigCommand(PGconn *conn, const char *arrayitem,
48
48
const char * name2 );
49
49
static void dumpDatabases (PGconn * conn );
50
50
static void dumpTimestamp (char * msg );
51
- static void doShellQuoting (PQExpBuffer buf , const char * str );
52
- static void doConnStrQuoting (PQExpBuffer buf , const char * str );
51
+ static void appendShellString (PQExpBuffer buf , const char * str );
52
+ static void appendConnStrVal (PQExpBuffer buf , const char * str );
53
53
54
54
static int runPgDump (const char * dbname );
55
55
static void buildShSecLabels (PGconn * conn , const char * catalog_name ,
@@ -203,7 +203,7 @@ main(int argc, char *argv[])
203
203
case 'f' :
204
204
filename = optarg ;
205
205
appendPQExpBuffer (pgdumpopts , " -f " );
206
- doShellQuoting (pgdumpopts , filename );
206
+ appendShellString (pgdumpopts , filename );
207
207
break ;
208
208
209
209
case 'g' :
@@ -213,7 +213,7 @@ main(int argc, char *argv[])
213
213
case 'h' :
214
214
pghost = optarg ;
215
215
appendPQExpBuffer (pgdumpopts , " -h " );
216
- doShellQuoting (pgdumpopts , pghost );
216
+ appendShellString (pgdumpopts , pghost );
217
217
break ;
218
218
219
219
case 'i' :
@@ -235,7 +235,7 @@ main(int argc, char *argv[])
235
235
case 'p' :
236
236
pgport = optarg ;
237
237
appendPQExpBuffer (pgdumpopts , " -p " );
238
- doShellQuoting (pgdumpopts , pgport );
238
+ appendShellString (pgdumpopts , pgport );
239
239
break ;
240
240
241
241
case 'r' :
@@ -248,7 +248,7 @@ main(int argc, char *argv[])
248
248
249
249
case 'S' :
250
250
appendPQExpBuffer (pgdumpopts , " -S " );
251
- doShellQuoting (pgdumpopts , optarg );
251
+ appendShellString (pgdumpopts , optarg );
252
252
break ;
253
253
254
254
case 't' :
@@ -258,7 +258,7 @@ main(int argc, char *argv[])
258
258
case 'U' :
259
259
pguser = optarg ;
260
260
appendPQExpBuffer (pgdumpopts , " -U " );
261
- doShellQuoting (pgdumpopts , pguser );
261
+ appendShellString (pgdumpopts , pguser );
262
262
break ;
263
263
264
264
case 'v' :
@@ -286,13 +286,13 @@ main(int argc, char *argv[])
286
286
287
287
case 2 :
288
288
appendPQExpBuffer (pgdumpopts , " --lock-wait-timeout " );
289
- doShellQuoting (pgdumpopts , optarg );
289
+ appendShellString (pgdumpopts , optarg );
290
290
break ;
291
291
292
292
case 3 :
293
293
use_role = optarg ;
294
294
appendPQExpBuffer (pgdumpopts , " --role " );
295
- doShellQuoting (pgdumpopts , use_role );
295
+ appendShellString (pgdumpopts , use_role );
296
296
break ;
297
297
298
298
default :
@@ -1679,9 +1679,9 @@ runPgDump(const char *dbname)
1679
1679
* incorrectly treat it as a connection string.
1680
1680
*/
1681
1681
appendPQExpBufferStr (connstrbuf , "dbname=" );
1682
- doConnStrQuoting (connstrbuf , dbname );
1682
+ appendConnStrVal (connstrbuf , dbname );
1683
1683
1684
- doShellQuoting (cmd , connstrbuf -> data );
1684
+ appendShellString (cmd , connstrbuf -> data );
1685
1685
1686
1686
appendPQExpBuffer (cmd , "%s" , SYSTEMQUOTE );
1687
1687
@@ -1940,7 +1940,7 @@ dumpTimestamp(char *msg)
1940
1940
* string
1941
1941
*/
1942
1942
static void
1943
- doConnStrQuoting (PQExpBuffer buf , const char * str )
1943
+ appendConnStrVal (PQExpBuffer buf , const char * str )
1944
1944
{
1945
1945
const char * s ;
1946
1946
bool needquotes ;
@@ -1989,7 +1989,7 @@ doConnStrQuoting(PQExpBuffer buf, const char *str)
1989
1989
* there eventually leads to errors here.
1990
1990
*/
1991
1991
static void
1992
- doShellQuoting (PQExpBuffer buf , const char * str )
1992
+ appendShellString (PQExpBuffer buf , const char * str )
1993
1993
{
1994
1994
const char * p ;
1995
1995
0 commit comments