From 1553d3d626df46d25085930705290ff727deb6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E6=B5=A9=E6=96=87?= Date: Wed, 3 Mar 2021 20:10:25 +0800 Subject: [PATCH] =?UTF-8?q?update=20src/bin/pg=5Fbasebackup/pg=5Fbasebacku?= =?UTF-8?q?p.cpp.=20=E5=9C=A8=E7=94=9F=E6=88=90tar=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=B6=EF=BC=8C=E6=96=87=E4=BB=B6=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E8=AE=B0=E5=BD=95=E5=9C=A8=E6=96=87=E4=BB=B6=E5=A4=B4?= =?UTF-8?q?=E9=83=A8=E4=BF=A1=E6=81=AF=E4=B8=AD=E7=9A=841048~1080=E5=AD=97?= =?UTF-8?q?=E8=8A=82=EF=BC=8C=E8=A7=A3=E5=8E=8B=E6=97=B6=E7=A1=AE=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E4=BA=86201=E4=B8=AA=E5=AD=97=E8=8A=82=EF=BC=8C?= =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=88=A4=E6=96=AD=E4=B8=BA=E8=AF=BB=E5=8F=96?= =?UTF-8?q?20=E4=B8=AA=E5=AD=97=E8=8A=82=EF=BC=8C=E5=B9=B6=E4=B8=94?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=88=B0=E4=B8=80=E4=B8=AA=E9=95=BF=E6=95=B4?= =?UTF-8?q?=E5=9E=8B=E4=B8=AD=EF=BC=8C=E6=BA=90=E7=A0=81=E5=86=85=E8=AF=AF?= =?UTF-8?q?=E6=8A=8A=E5=B0=8F=E5=86=99l=E5=86=99=E6=88=90=E6=95=B0?= =?UTF-8?q?=E5=AD=971?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/pg_basebackup/pg_basebackup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_basebackup/pg_basebackup.cpp b/src/bin/pg_basebackup/pg_basebackup.cpp index 164b7c10b..2322b6e77 100644 --- a/src/bin/pg_basebackup/pg_basebackup.cpp +++ b/src/bin/pg_basebackup/pg_basebackup.cpp @@ -906,7 +906,7 @@ static void ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum) } totaldone += TAR_BLOCK_SIZE; - if (sscanf_s(copybuf + TAR_LEN_LEFT, "%201o", ¤t_len_left) != 1) { + if (sscanf_s(copybuf + TAR_LEN_LEFT, "%20lo", ¤t_len_left) != 1) { pg_log(stderr, _("%s: could not parse file size\n"), progname); disconnect_and_exit(1); } @@ -1670,7 +1670,7 @@ static int GsTar(int argc, char** argv) } totaldone += TAR_BLOCK_SIZE; - if (sscanf_s(copybuf + 1048, "%201o", ¤t_len_left) != 1) { + if (sscanf_s(copybuf + 1048, "%20lo", ¤t_len_left) != 1) { fprintf(stderr, "%s: could not parse file size\n", progname); GS_FREE(copybuf); CLOSE_AND_RETURN(tarfile);