[tor-commits] [arm/master] fix: misparsing sudo version string

atagar at torproject.org atagar at torproject.org
Sat Aug 6 23:39:14 UTC 2011


commit d1c16ba280d925b7b0724e8c47dca959a46c19d5
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Aug 6 16:24:46 2011 -0700

    fix: misparsing sudo version string
---
 src/cli/wizard.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cli/wizard.py b/src/cli/wizard.py
index ff4e5cf..f0c14a8 100644
--- a/src/cli/wizard.py
+++ b/src/cli/wizard.py
@@ -417,7 +417,7 @@ def showWizard():
               sudoVersionResult = sysTools.call("sudo -V")
               
               # version output looks like "Sudo version 1.7.2p7"
-              if len(sudoVersionResult) == 1 and sudoVersionResult.count(" ") >= 2:
+              if len(sudoVersionResult) == 1 and sudoVersionResult[0].count(" ") >= 2:
                 versionNum = 0
                 
                 for comp in sudoVersionResult[0].split(" ")[2].split("."):





More information about the tor-commits mailing list