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

Commitd6f1cde

Browse files
committed
pg_basebackup: Clean up some bogus file extension tests.
Justin PryzbyDiscussion:http://postgr.es/m/20220311162911.GM28503@telsasoft.com
1 parentb2de45f commitd6f1cde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/bin/pg_basebackup/pg_basebackup.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,17 +1224,17 @@ CreateBackupStreamer(char *archive_name, char *spclocation,
12241224
is_tar= (archive_name_len>4&&
12251225
strcmp(archive_name+archive_name_len-4,".tar")==0);
12261226

1227-
/* Is this agzip archive? */
1228-
is_tar_gz= (archive_name_len>8&&
1229-
strcmp(archive_name+archive_name_len-3,".gz")==0);
1227+
/* Is this a.tar.gz archive? */
1228+
is_tar_gz= (archive_name_len>7&&
1229+
strcmp(archive_name+archive_name_len-7,".tar.gz")==0);
12301230

1231-
/* Is this aLZ4 archive? */
1231+
/* Is this a.tar.lz4 archive? */
12321232
is_tar_lz4= (archive_name_len>8&&
1233-
strcmp(archive_name+archive_name_len-4,".lz4")==0);
1233+
strcmp(archive_name+archive_name_len-8,".tar.lz4")==0);
12341234

1235-
/* Is this aZSTD archive? */
1235+
/* Is this a.tar.zst archive? */
12361236
is_tar_zstd= (archive_name_len>8&&
1237-
strcmp(archive_name+archive_name_len-4,".zst")==0);
1237+
strcmp(archive_name+archive_name_len-8,".tar.zst")==0);
12381238

12391239
/* Is this any kind of compressed tar? */
12401240
is_compressed_tar=is_tar_gz||is_tar_lz4||is_tar_zstd;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp