Home GnuPG

Provide an option to choose an alternate name for files that exist
ea99f888c0f5Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Provide an option to choose an alternate name for files that exist

* src/gpgmetools.c (check_overwriting): Change return type from a
boolean to a char *.  If the file exists, offer the user the option to
select a different file.  Return the file that is actually used.
(gpa_fopen): Take an additional parameter, FILENAME_USED.  Save the
filename returned by check_overwriting there.  Update users.
(gpa_open_output): Likewise.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>
  • GnuPG-bug-id: T758

Details

Provenance
nealAuthored on Nov 3 2015, 10:09 PM
Parents
rGPA60ddc172ba09: Fix segv when if build against gpgme 1.6.1.
Branches
Unknown
Tags
Unknown