mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
FakeTar: /var/log/postgres can't be both a folder and a file
This commit is contained in:
parent
f3e06a784f
commit
48974cc28d
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ func FakeTar() (io.Reader, error) {
|
|||
content := []byte("Hello world!\n")
|
||||
buf := new(bytes.Buffer)
|
||||
tw := tar.NewWriter(buf)
|
||||
for _, name := range []string {"/etc/postgres/postgres.conf", "/etc/passwd", "/var/log/postgres", "/var/log/postgres/postgres.conf"} {
|
||||
for _, name := range []string {"/etc/postgres/postgres.conf", "/etc/passwd", "/var/log/postgres/postgres.conf"} {
|
||||
hdr := new(tar.Header)
|
||||
hdr.Size = int64(len(content))
|
||||
hdr.Name = name
|
||||
|
|
Loading…
Reference in a new issue