gpg --decrypt-files gets confused by errors
Closed, ResolvedPublic

Description

Release: gnupg-1.2.2rc1

Description

If one of the files passed to gpg --decrypt-files cannot be processed, the next file will never be examined. Instead, the problematic file will be repeatedly attempted.

How To Repeat

Pass intentionally problematic files (e.g., nonexistent, bad suffix).

gpg --decrypt-files /not-real a-real-file

> gpg: /not-real: unknown suffix
> gpg: /not-real: unknown suffix

Fix

Patch attached. Uses 'goto', rather than 'continue', in decrypt.c to ensure that 'files' is always incremented.

Thanks. I did it similar but still emit the FILE_DONE status because this would have also been done on an encryption error.

Related Objects