mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
sm: Fix regression in Friday's commit
* sm/gpgsm.c (main): Set ERR also for encrypt. -- Fixes-commit: ccbb0cfeefed096a9841b6557d10eef12d55b721 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
ccbb0cfeef
commit
4f1c257c03
@ -1924,9 +1924,9 @@ main ( int argc, char **argv)
|
|||||||
set_binary (stdin);
|
set_binary (stdin);
|
||||||
|
|
||||||
if (!argc) /* Source is stdin. */
|
if (!argc) /* Source is stdin. */
|
||||||
gpgsm_encrypt (&ctrl, recplist, 0, fp);
|
err = gpgsm_encrypt (&ctrl, recplist, 0, fp);
|
||||||
else if (argc == 1) /* Source is the given file. */
|
else if (argc == 1) /* Source is the given file. */
|
||||||
gpgsm_encrypt (&ctrl, recplist, open_read (*argv), fp);
|
err = gpgsm_encrypt (&ctrl, recplist, open_read (*argv), fp);
|
||||||
else
|
else
|
||||||
wrong_args ("--encrypt [datafile]");
|
wrong_args ("--encrypt [datafile]");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user