Commit 0e0be842 authored by Jan Chaloupka's avatar Jan Chaloupka

gcr.io/google_containers/mounttest: use Stat instead of Lstat to retrieve…

gcr.io/google_containers/mounttest: use Stat instead of Lstat to retrieve fileinfo of symlinks as well
parent 9990f843
......@@ -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
......
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment