mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01: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);
|
||||
|
||||
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. */
|
||||
gpgsm_encrypt (&ctrl, recplist, open_read (*argv), fp);
|
||||
err = gpgsm_encrypt (&ctrl, recplist, open_read (*argv), fp);
|
||||
else
|
||||
wrong_args ("--encrypt [datafile]");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user