1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Use gpg_err_set_errno to assign values to ERRNO.

This commit is contained in:
Werner Koch 2010-04-01 13:24:55 +00:00
parent 492f08ff68
commit f3839fe81d
18 changed files with 45 additions and 41 deletions

View file

@ -1107,7 +1107,7 @@ open_info_file (const char *fname, int for_write, int binary)
/* if (is_secured_filename (fname)) */
/* { */
/* fd = -1; */
/* errno = EPERM; */
/* gpg_err_set_errno (EPERM); */
/* } */
/* else */
/* { */
@ -2108,7 +2108,7 @@ main (int argc, char **argv)
{
fclose (configfp);
configfp = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
if( !configfp ) {
if( default_config ) {
@ -4037,7 +4037,7 @@ main (int argc, char **argv)
{
iobuf_close (a);
a = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
if( !a )
log_error(_("can't open `%s'\n"), print_fname_stdin(fname));
@ -4224,7 +4224,7 @@ print_mds( const char *fname, int algo )
{
fclose (fp);
fp = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
}
if( !fp ) {