diff options
| author | Werner Koch <[email protected]> | 2010-04-01 13:24:55 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2010-04-01 13:24:55 +0000 |
| commit | f3839fe81ddd86632c1a4d70986bbe7e3a751fc2 (patch) | |
| tree | 6fa1386cb24d9477a4d7ca95f6230baa5be6589f /g10/gpg.c | |
| parent | Minor cleanups (diff) | |
| download | gnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.tar.gz gnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.zip | |
Use gpg_err_set_errno to assign values to ERRNO.
Diffstat (limited to 'g10/gpg.c')
| -rw-r--r-- | g10/gpg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 ) { |
