From ccb83aae17239b1baca7d1052abb3d4ee6702a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 29 Jun 2022 19:37:12 +0200 Subject: [PATCH] Treat negative autoaccept time as "always allow" --- splitgpg2/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/splitgpg2/__init__.py b/splitgpg2/__init__.py index 0d0a52e..9196771 100755 --- a/splitgpg2/__init__.py +++ b/splitgpg2/__init__.py @@ -366,6 +366,9 @@ def request_timer(self, name): delay = self.timer_delay[name] timestamp_path = self.timestamp_path(name) if delay is not None: + if delay < 0: + self.notify('command {} automatically allowed'.format(name)) + return try: mtime = timestamp_path.stat().st_mtime if mtime + delay > now: