diff options
author | Werner Koch <[email protected]> | 2023-05-24 10:09:47 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-05-24 10:12:34 +0000 |
commit | faf0a97b2e0b62fe23acdc8473033398ba2ce1bc (patch) | |
tree | e71af94c9d766daf2d0da38ec87a4fe0539acf2e /g10/plaintext.c | |
parent | gpg: Report BEGIN_* status before examining the input. (diff) | |
download | gnupg-faf0a97b2e0b62fe23acdc8473033398ba2ce1bc.tar.gz gnupg-faf0a97b2e0b62fe23acdc8473033398ba2ce1bc.zip |
gpg: Improve error code for file already exists.
* g10/plaintext.c (get_output_file): Fix error code.
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r-- | g10/plaintext.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c index 5c21dd7f6..e12c2bf79 100644 --- a/g10/plaintext.c +++ b/g10/plaintext.c @@ -137,8 +137,7 @@ get_output_file (const byte *embedded_name, int embedded_namelen, if (!tmp || !*tmp) { xfree (tmp); - /* FIXME: Below used to be GPG_ERR_CREATE_FILE */ - err = gpg_error (GPG_ERR_GENERAL); + err = gpg_error (GPG_ERR_EEXIST); goto leave; } xfree (fname); |