Changeset 132 for trunk/src/sh_gpg.c


Ignore:
Timestamp:
Oct 23, 2007, 11:44:41 PM (17 years ago)
Author:
rainer
Message:

Make utility functions thread-safe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_gpg.c

    r131 r132  
    660660  if (0 != retry_lstat(FIL__, __LINE__, DEFAULT_GPG_PATH, &buf))
    661661    {
     662      char errbuf[SH_ERRBUF_SIZE];
     663
    662664      status = errno;
    663665      sh_error_handle(SH_ERR_ERR, FIL__, __LINE__, status, MSG_ERR_LSTAT,
    664                       sh_error_message(status), DEFAULT_GPG_PATH);
     666                      sh_error_message(status, errbuf, sizeof(errbuf)), DEFAULT_GPG_PATH);
    665667      SL_RETURN( SH_GPG_BAD, _("sh_gpg_check_file_sign"));
    666668    }
     
    690692  if (0 != retry_lstat(FIL__, __LINE__, DEFAULT_PGP_PATH, &buf))
    691693    {
     694      char errbuf[SH_ERRBUF_SIZE];
     695
    692696      status = errno;
    693697      sh_error_handle(SH_ERR_ERR, FIL__, __LINE__, status, MSG_ERR_LSTAT,
    694                       sh_error_message(status), DEFAULT_PGP_PATH);
     698                      sh_error_message(status, errbuf, sizeof(errbuf)), DEFAULT_PGP_PATH);
    695699      SL_RETURN( SH_GPG_BAD, _("sh_gpg_check_file_sign"));
    696700    }
Note: See TracChangeset for help on using the changeset viewer.