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

@ -783,7 +783,7 @@ sign_file( strlist_t filenames, int detached, strlist_t locusr,
{
iobuf_close (inp);
inp = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
if( !inp )
{
@ -799,7 +799,7 @@ sign_file( strlist_t filenames, int detached, strlist_t locusr,
if( outfile ) {
if (is_secured_filename ( outfile )) {
out = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
else
out = iobuf_create( outfile );
@ -978,7 +978,7 @@ sign_file( strlist_t filenames, int detached, strlist_t locusr,
{
iobuf_close (inp);
inp = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
if( !inp )
{
@ -1095,7 +1095,7 @@ clearsign_file( const char *fname, strlist_t locusr, const char *outfile )
{
iobuf_close (inp);
inp = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
if( !inp ) {
rc = gpg_error_from_syserror ();
@ -1108,7 +1108,7 @@ clearsign_file( const char *fname, strlist_t locusr, const char *outfile )
if( outfile ) {
if (is_secured_filename (outfile) ) {
outfile = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
else
out = iobuf_create( outfile );
@ -1250,7 +1250,7 @@ sign_symencrypt_file (const char *fname, strlist_t locusr)
{
iobuf_close (inp);
inp = NULL;
errno = EPERM;
gpg_err_set_errno (EPERM);
}
if( !inp ) {
rc = gpg_error_from_syserror ();