8000 Avoid accidental wildcard expansion in msys shell · postgrespro/postgres@78b408a · GitHub
[go: up one dir, main page]

Skip to content
  • Commit 78b408a

    Browse files
    committed
    Avoid accidental wildcard expansion in msys shell
    Commit f092de0 added a test for pg_dumpall --exclude-database including the wildcard pattern '*dump*' which matches some files in the source directory. The test library on msys uses the shell which expands this and thus the program gets incorrect arguments. This doesn't happen if the pattern doesn't match any files, so here the pattern is set to '*dump_test*' which is such a pattern. Per buildfarm animal jacana.
    1 parent ed4653d commit 78b408a

    File tree

    1 file changed

    +1
    -1
    lines changed

    1 file changed

    +1
    -1
    lines changed

    src/bin/pg_dump/t/002_pg_dump.pl

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -227,7 +227,7 @@
    227227
    pg_dumpall_exclude => {
    228228
    dump_cmd => [
    229229
    'pg_dumpall', '-v', "--file=$tempdir/pg_dumpall_exclude.sql",
    230-
    '--exclude-database', '*dump*', '--no-sync',
    230+
    '--exclude-database', '*dump_test*', '--no-sync',
    231231
    ],
    232232
    },
    233233
    no_blobs => {

    0 commit comments

    Comments
     (0)
    0