diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-31 10:05:27 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-31 10:05:27 -0700 |
| commit | e32dc7403fcc12935f494b9691feb68ff90c8cf6 (patch) | |
| tree | f5b410789e876d56baa393348ff5dc8065e9f8fa /test/fuse_integration/posix_compliance_test.go | |
| parent | 7eaf7b15c419f0fc48114dee00f675baa90a00b8 (diff) | |
| download | seaweedfs-e32dc7403fcc12935f494b9691feb68ff90c8cf6.tar.xz seaweedfs-e32dc7403fcc12935f494b9691feb68ff90c8cf6.zip | |
fix
Diffstat (limited to 'test/fuse_integration/posix_compliance_test.go')
| -rw-r--r-- | test/fuse_integration/posix_compliance_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/fuse_integration/posix_compliance_test.go b/test/fuse_integration/posix_compliance_test.go index 9d5985347..e7ce60ec7 100644 --- a/test/fuse_integration/posix_compliance_test.go +++ b/test/fuse_integration/posix_compliance_test.go @@ -259,11 +259,12 @@ func (s *POSIXComplianceTestSuite) TestPermissions(t *testing.T) { // SeaweedFS FUSE mount typically masks execute bits for security actualMode := stat.Mode() & os.ModePerm expectedMode := os.FileMode(0642) + expectedModeNoExec := os.FileMode(0640) // 642 without execute bits // Accept either the exact permissions or permissions without execute bit - if actualMode != expectedMode && actualMode != (expectedMode&^0111) { + if actualMode != expectedMode && actualMode != expectedModeNoExec { t.Errorf("Expected file permissions %o or %o, but got %o", - expectedMode, expectedMode&^0111, actualMode) + expectedMode, expectedModeNoExec, actualMode) } }) |
