From 48974cc28d72598f0a35a4a6483b7006a1c18f9f Mon Sep 17 00:00:00 2001 From: shin- Date: Mon, 18 Feb 2013 21:09:25 -0800 Subject: [PATCH] FakeTar: /var/log/postgres can't be both a folder and a file --- fake/fake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fake/fake.go b/fake/fake.go index a8c18a458e..b3ec46310e 100644 --- a/fake/fake.go +++ b/fake/fake.go @@ -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