Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdc7059

Browse files
committed
Teach appendShellString() to not quote strings containing "-".
Brain fade in commita00c583: I was thinking that a string starting with"-" could be taken as a switch depending on command line syntax. That'strue, but having appendShellString() quote it will not help, so we may aswell not do so. Per complaint from Peter Eisentraut.
1 parenta2ee579 commitcdc7059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/fe_utils/string_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ appendShellString(PQExpBuffer buf, const char *str)
439439
* contains only safe characters.
440440
*/
441441
if (*str!='\0'&&
442-
strspn(str,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_./:")==strlen(str))
442+
strspn(str,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_./:")==strlen(str))
443443
{
444444
appendPQExpBufferStr(buf,str);
445445
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp