Tracker: Bugs

5 -s option resets pwgen_flags if entered after another option - ID: 1893193
Last Update: Tracker Item Submitted ( yath )

(Note: I have copied this bug from the Debian bug tracker: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=436912

I am not the original reporter.)

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;


Joshua Swink ( yath ) - 2008-02-13 15:46:22 PST

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.