mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Use gpg_err_set_errno to assign values to ERRNO.
This commit is contained in:
parent
492f08ff68
commit
f3839fe81d
18 changed files with 45 additions and 41 deletions
|
@ -59,7 +59,7 @@ decrypt_message (const char *filename)
|
|||
{
|
||||
iobuf_close (fp);
|
||||
fp = NULL;
|
||||
errno = EPERM;
|
||||
gpg_err_set_errno (EPERM);
|
||||
}
|
||||
if ( !fp )
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ decrypt_message_fd (int input_fd, int output_fd)
|
|||
{
|
||||
iobuf_close (fp);
|
||||
fp = NULL;
|
||||
errno = EPERM;
|
||||
gpg_err_set_errno (EPERM);
|
||||
}
|
||||
if (!fp)
|
||||
{
|
||||
|
@ -228,7 +228,7 @@ decrypt_messages (int nfiles, char *files[])
|
|||
{
|
||||
iobuf_close (fp);
|
||||
fp = NULL;
|
||||
errno = EPERM;
|
||||
gpg_err_set_errno (EPERM);
|
||||
}
|
||||
if (!fp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue