From 0e0be8421f3b49a69c426df4c43a96fb2f4333fc Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Tue, 17 May 2016 15:57:33 +0200 Subject: [PATCH] gcr.io/google_containers/mounttest: use Stat instead of Lstat to retrieve fileinfo of symlinks as well --- test/images/mount-tester/Makefile | 2 +- test/images/mount-tester/mt.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/images/mount-tester/Makefile b/test/images/mount-tester/Makefile index b281e24441..857df90495 100644 --- a/test/images/mount-tester/Makefile +++ b/test/images/mount-tester/Makefile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -TAG = 0.6 +TAG = 0.7 PREFIX = gcr.io/google_containers all: push diff --git a/test/images/mount-tester/mt.go b/test/images/mount-tester/mt.go index 4ade9a85d7..01b6716e28 100644 --- a/test/images/mount-tester/mt.go +++ b/test/images/mount-tester/mt.go @@ -162,9 +162,9 @@ func fileMode(path string) error { return nil } - fileinfo, err := os.Lstat(path) + fileinfo, err := os.Stat(path) if err != nil { - fmt.Printf("error from Lstat(%q): %v\n", path, err) + fmt.Printf("error from Stat(%q): %v\n", path, err) return err } @@ -177,9 +177,9 @@ func filePerm(path string) error { return nil } - fileinfo, err := os.Lstat(path) + fileinfo, err := os.Stat(path) if err != nil { - fmt.Printf("error from Lstat(%q): %v\n", path, err) + fmt.Printf("error from Stat(%q): %v\n", path, err) return err }