From 1f8641508ffc71a7b029db12b454987a2f17be51 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 29 Nov 2026 17:04:34 +0000 Subject: [PATCH] autosign: operator precedence fix --- mmgen/autosign/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmgen/autosign/__init__.py b/mmgen/autosign/__init__.py index 307cd2e7..505b8e67 100644 --- a/mmgen/autosign/__init__.py +++ b/mmgen/autosign/__init__.py @@ -203,7 +203,7 @@ class Autosign: def check_or_create(dirname): path = getattr(self, dirname) if path.is_dir(): - if path.stat().st_mode & S_IWUSR|S_IRUSR != S_IWUSR|S_IRUSR: + if path.stat().st_mode & (S_IWUSR|S_IRUSR) != (S_IWUSR|S_IRUSR): die(1, f'‘{path}’ is not read/write for this user!') elif path.exists(): die(1, f'‘{path}’ is not a directory!')