Merge pull request #12090 from tangcong/automated-cherry-pick-of-#11997-origin-release-3.3

Automated cherry pick of #11997
This commit is contained in:
Gyuho Lee 2020-07-06 13:00:48 -07:00 committed by GitHub
commit e542d1aed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ func CheckDirPermission(dir string, perm os.FileMode) error {
}
dirMode := dirInfo.Mode().Perm()
if dirMode != perm {
err = fmt.Errorf("directory %q exist without desired file permission. %q", dir, dirInfo.Mode())
err = fmt.Errorf("directory %q,%q exist without desired file permission %q.", dir, dirInfo.Mode(), os.FileMode(PrivateDirMode))
return err
}
return nil