about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-04-18 23:27:44 +0000
committerEric Wong <e@80x24.org>2018-04-18 23:40:52 +0000
commit2a353273079b2491cbceb20526d3c9dbf43d8f62 (patch)
treee84d1b4f39fbb63231c8b3585d14bcd1a7240136 /t/v2writable.t
parentcfb8d16578e7f2f2e300f9f436205e4a8fc7f322 (diff)
downloadpublic-inbox-2a353273079b2491cbceb20526d3c9dbf43d8f62.tar.gz
We can't have files with permissions inconsistent with what's
in git objects.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index d37fb06e..00b08e03 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -36,6 +36,15 @@ my $im = eval {
 };
 is($im->{partitions}, 1, 'one partition when forced');
 ok($im->add($mime), 'ordinary message added');
+foreach my $f ("$mainrepo/msgmap.sqlite3",
+                glob("$mainrepo/xap*/*"),
+                glob("$mainrepo/xap*/*/*")) {
+        my @st = stat($f);
+        my ($bn) = (split(m!/!, $f))[-1];
+        is($st[2] & 07777, -f _ ? 0660 : 0770,
+                "default sharedRepository respected for $bn");
+}
+
 my $git0;
 
 if ('ensure git configs are correct') {