Package: pwgen
Version: 2.06-1
Severity: normal
Tags: patch


When using the -s option it can nullify other options if it is entered after the other named option.

Try for example "-y -s" and "-s -y" they are not the same.

Here is the fix (I think):
--- pwgen-2.06.orig/pwgen.c
+++ pwgen-2.06/pwgen.c
@@ -138,7 +138,7 @@
                       break;
               case 's':
                       pwgen = pw_rand;
-                       pwgen_flags = PW_DIGITS | PW_UPPERS;
+                       pwgen_flags |= PW_DIGITS | PW_UPPERS;
                       break;
               case 'C':
                       do_columns = 1;


I use this command often and it's a great help for my daily work, so thanks for writing it.

/Andreas Sundstrom



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to