projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb3d350
)
Avoid printing uninitialized filename variable in verbose mode
author
Magnus Hagander
Sun, 9 Feb 2014 10:54:33 +0000
(11:54 +0100)
committer
Magnus Hagander
Sun, 9 Feb 2014 11:09:18 +0000
(12:09 +0100)
When using verbose mode for pg_basebackup, in tar format sent to
stdout, we'd print an unitialized buffer as the filename.
Reported by Pontus Lundkvist
src/bin/pg_basebackup/pg_basebackup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_basebackup/pg_basebackup.c
b/src/bin/pg_basebackup/pg_basebackup.c
index a1e12a8aaa331c400529acbd9cbce66d3c5e6396..34788122ccaae3e4db7433a08be8645f10ca1b9d 100644
(file)
--- a/
src/bin/pg_basebackup/pg_basebackup.c
+++ b/
src/bin/pg_basebackup/pg_basebackup.c
@@
-563,6
+563,7
@@
ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
else
#endif
tarfile = stdout;
+ strcpy(filename, "-");
}
else
{