mirror of https://github.com/k3s-io/k3s
gcr.io/google_containers/mounttest: use Stat instead of Lstat to retrieve fileinfo of symlinks as well
parent
9990f843cd
commit
0e0be8421f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue