gcr.io/google_containers/mounttest: use Stat instead of Lstat to retrieve fileinfo of symlinks as well

pull/6/head
Jan Chaloupka 2016-05-17 15:57:33 +02:00
parent 9990f843cd
commit 0e0be8421f
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

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