Relax permission check only to owner exec perm (#878)

Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
Matej Vasek 2022-03-03 14:54:06 +01:00 committed by GitHub
parent d672afc19f
commit 1e4d52be33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ func TestFileSystems(t *testing.T) {
return nil
}
if runtime.GOOS != "windows" && embeddedFileStats.Mode().Perm() != localFileStat.Mode().Perm() {
if runtime.GOOS != "windows" && (embeddedFileStats.Mode().Perm()&0100) != (localFileStat.Mode().Perm()&0100) {
t.Errorf("mode mismatch on %q (expected: %o, actual: %o)",
path, localFileStat.Mode().Perm(), embeddedFileStats.Mode().Perm())
return nil