Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 14 Jun 2012 15:30:28 +0200
From: Frank Dittrich <frank_dittrich@...mail.com>
To: john-dev@...ts.openwall.com
Subject: Write list of encodings to stdout if there is no error

What do you think of the attached patch?

I just added FILE * stream as a listEncodings() parameter, and used
stdout for all callers which used exit(0) afterwards, and stderr for the
one that used error() afterwards.

So, unless you use --encoding=<invalid_encoding>, the list gets written
to stdout.

The bash completion script works without any changes.
Are there any other applications parsing the output of listEncodings()?
What do you think of this patch?

Frank

View attachment "0001-Write-the-list-of-encodings-to-stdout-instead-of-std.patch" of type "text/x-patch" (2897 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ