File: bsddb-nulls-in-access-file-policy.patch

package info (click to toggle)
pymilter 1.0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,100 kB
  • sloc: python: 3,371; ansic: 1,333; makefile: 34; sh: 8
file content (24 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: "Stuart D. Gathman" <stuart@gathman.org>
Date: Tue, 15 Oct 2024 19:42:05 -0400
Subject: bsddb changed nulls in access file policy

Origin: upstream, https://github.com/sdgathman/pymilter/commit/5ad23e468d55e66af03015b800d1483bf77a15ea
Last-Update: 2025-01-12
---
 .gitignore    | 3 +++
 testpolicy.py | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/testpolicy.py b/testpolicy.py
index dbe6638..6cd563e 100644
--- a/testpolicy.py
+++ b/testpolicy.py
@@ -25,7 +25,7 @@ class PolicyTestCase(unittest.TestCase):
 
   def testPolicy(self):
     self.config.access_file_colon = False
-    self.config.access_file_nulls = True
+    self.config.access_file_nulls = False   # FIXME: test old and new bsddb
     with MTAPolicy('good@example.com',conf=self.config) as p:
       pol = p.getPolicy('smtp-auth')
     self.assertEqual(pol,'OK')