Pārlūkot izejas kodu

Fix for missing -e option

oz123 11 gadi atpakaļ
vecāks
revīzija
77b58ef328
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      scripts/pwman3

+ 2 - 1
scripts/pwman3

@@ -116,7 +116,7 @@ def set_db(args):
         _saveconfig = False
 
 
-def set_algorithm(args):
+def set_algorithm(args, config):
     global _saveconfig
     if args.algo:
         config.set_value("Encryption", "algorithm", args.algo)
@@ -133,6 +133,7 @@ def get_conf_options(args, OSX):
     set_win_colors(config)
     set_db(args)
     set_umask(config)
+    set_algorithm(args, config)
     dbtype = config.get_value("Database", "type")
     if not dbtype:
         print("Could not read the Database type from the config!")