Переглянути джерело

test setup: stay away from the setgid mode bit

for vagrant testing on misc. platforms, we can't know the group /
we can't have the same group everywhere.

but the OS won't let us set setgid bit if the file does not have our group.
on netbsd, the created file somehow happens to have group "wheel",
but vagrant is not in group wheel.
Thomas Waldmann 10 роки тому
батько
коміт
41860ef5f0
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      borg/testsuite/archiver.py

+ 1 - 1
borg/testsuite/archiver.py

@@ -162,7 +162,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         # Directory
         # Directory
         self.create_regular_file('dir2/file2', size=1024 * 80)
         self.create_regular_file('dir2/file2', size=1024 * 80)
         # File mode
         # File mode
-        os.chmod('input/file1', 0o6755)
+        os.chmod('input/file1', 0o4755)
         # Hard link
         # Hard link
         os.link(os.path.join(self.input_path, 'file1'),
         os.link(os.path.join(self.input_path, 'file1'),
                 os.path.join(self.input_path, 'hardlink'))
                 os.path.join(self.input_path, 'hardlink'))