зеркало из https://github.com/microsoft/docker.git
FakeTar: /var/log/postgres can't be both a folder and a file
This commit is contained in:
Родитель
f3e06a784f
Коммит
48974cc28d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче