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: Sophie Brun <sophie@offensive-security.com>
Date: Mon, 20 Dec 2021 16:31:49 +0100
Subject: Update the process.py for new behavior of which
Since debianutils version 5.0-1 which is deprecatedi, stderr is no
longer empty if the command is not found. Adapt the test for this new
behavior.
---
wifite/util/process.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wifite/util/process.py b/wifite/util/process.py
index 7f450ed..b0d1431 100755
--- a/wifite/util/process.py
+++ b/wifite/util/process.py
@@ -63,7 +63,7 @@ class Process(object):
stdout = p.stdout().strip()
stderr = p.stderr().strip()
- exist = not stdout == stderr == ''
+ exist = stdout != ''
if Configuration.initialized:
Configuration.existing_commands.update({program: exist})
return exist
|