mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +00:00
gcr.io/google_containers/mounttest: use Stat instead of Lstat to retrieve fileinfo of symlinks as well
This commit is contained in:
parent
9990f843cd
commit
0e0be8421f
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
TAG = 0.6
|
TAG = 0.7
|
||||||
PREFIX = gcr.io/google_containers
|
PREFIX = gcr.io/google_containers
|
||||||
|
|
||||||
all: push
|
all: push
|
||||||
|
@ -162,9 +162,9 @@ func fileMode(path string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fileinfo, err := os.Lstat(path)
|
fileinfo, err := os.Stat(path)
|
||||||
if err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,9 +177,9 @@ func filePerm(path string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fileinfo, err := os.Lstat(path)
|
fileinfo, err := os.Stat(path)
|
||||||
if err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user