/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-keygen

  • Committer: Teddy Hogeborn
  • Date: 2025-11-05 00:32:25 UTC
  • Revision ID: teddy@recompile.se-20251105003225-dvg91v35qejr5u6w
mandos-keygen: Do not strip whitespace from beginning and end of password

* mandos-keygen (password): Use empty IFS when reading password.
* mandos-keygen.xml (BUGS): Remove documentation of bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
388
388
        else
389
389
            tty --quiet && stty -echo
390
390
            echo -n "Enter passphrase: " >/dev/tty
391
 
            read -r first
 
391
            IFS= read -r first
392
392
            tty --quiet && echo >&2
393
393
            echo -n "Repeat passphrase: " >/dev/tty
394
 
            read -r second
 
394
            IFS= read -r second
395
395
            if tty --quiet; then
396
396
                echo >&2
397
397
                stty echo