mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tools/gpgtar: Improve error handling.
* tools/gpgtar-create.c (gpgtar_create): Return an error code, fix error handling. * tools/gpgtar-extract.c (gpgtar_extract): Likewise. * tools/gpgtar-list.c (read_header): Return an error code. (gpgtar_list): Return an error code, fix error handling. (gpgtar_read_header): Return an error code. * tools/gpgtar.c: Add missing include. (main): Print an generic error message if a command failed and no error has been printed yet. * tools/gpgtar.h (gpgtar_{create,extract,list,read_header}): Fix the prototypes accordingly. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
40dbee86f3
commit
f76fb047c1
5 changed files with 51 additions and 36 deletions
|
@ -115,14 +115,14 @@ gpg_error_t read_record (estream_t stream, void *record);
|
|||
gpg_error_t write_record (estream_t stream, const void *record);
|
||||
|
||||
/*-- gpgtar-create.c --*/
|
||||
void gpgtar_create (char **inpattern, int encrypt);
|
||||
gpg_error_t gpgtar_create (char **inpattern, int encrypt);
|
||||
|
||||
/*-- gpgtar-extract.c --*/
|
||||
void gpgtar_extract (const char *filename, int decrypt);
|
||||
gpg_error_t gpgtar_extract (const char *filename, int decrypt);
|
||||
|
||||
/*-- gpgtar-list.c --*/
|
||||
void gpgtar_list (const char *filename, int decrypt);
|
||||
tar_header_t gpgtar_read_header (estream_t stream);
|
||||
gpg_error_t gpgtar_list (const char *filename, int decrypt);
|
||||
gpg_error_t gpgtar_read_header (estream_t stream, tar_header_t *r_header);
|
||||
void gpgtar_print_header (tar_header_t header, estream_t out);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue