Merge pull request #15125 from WeiZhang555/golint-stdcopy-system

fix golint warnings/errors on pkg/system and pkg/stdcopy
This commit is contained in:
Jessie Frazelle
2015-08-21 14:27:59 -07:00
30 changed files with 131 additions and 89 deletions

View File

@@ -26,7 +26,7 @@ func setPlatformServerConfig(serverConfig *apiserver.Config, daemonCfg *daemon.C
// file.
func currentUserIsOwner(f string) bool {
if fileInfo, err := system.Stat(f); err == nil && fileInfo != nil {
if int(fileInfo.Uid()) == os.Getuid() {
if int(fileInfo.UID()) == os.Getuid() {
return true
}
}