Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcr.io/google_containers/mounttest: use Stat instead of Lstat #25800

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/images/mount-tester/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/images/mount-tester/mt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down