/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: 2016-10-08 04:19:12 UTC
  • Revision ID: teddy@recompile.se-20161008041912-d6rv4ylc8bg90m1x
Output the passphrase prompt to the TTY, not stderr.

* mandos-keygen (password): Output the passphrase prompt to the TTY,
                            not standard error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
            cat "$PASSFILE"
326
326
        else
327
327
            tty --quiet && stty -echo
328
 
            echo -n "Enter passphrase: " >&2
 
328
            echo -n "Enter passphrase: " >/dev/tty
329
329
            read first
330
330
            tty --quiet && echo >&2
331
 
            echo -n "Repeat passphrase: " >&2
 
331
            echo -n "Repeat passphrase: " >/dev/tty
332
332
            read second
333
333
            if tty --quiet; then
334
334
                echo >&2