Changeset 111 for trunk/src/sh_gpg.c


Ignore:
Timestamp:
Jul 7, 2007, 9:18:46 PM (17 years ago)
Author:
rainer
Message:

Fix for ticket #69 (wrappers for name service routines not used everywhere).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_gpg.c

    r102 r111  
    292292      struct stat lbuf;
    293293      int         status_stat = 0;
    294       struct passwd * tempres = getpwnam(DEFAULT_IDENT);
    295       if (!tempres)
    296         tempres = sh_getpwnam(DEFAULT_IDENT);
     294      struct passwd * tempres = sh_getpwnam(DEFAULT_IDENT);
     295
    297296      if (!tempres)
    298297        {
     
    953952      TPT(((0), FIL__, __LINE__, _("msg=<GPG_CHECK: FD1 = %d>\n"), fd1));
    954953#if defined(SH_WITH_SERVER)
    955       tempres = getpwnam(DEFAULT_IDENT);
    956       if (!tempres)
    957         tempres = sh_getpwnam(DEFAULT_IDENT);
     954      tempres = sh_getpwnam(DEFAULT_IDENT);
     955
    958956      if ((tempres != NULL) && (0 == sl_ret_euid()))
    959957        {
     
    971969      TPT(((0), FIL__, __LINE__, _("msg=<GPG_CHECK: FD2 = %d>\n"), fd2));
    972970#if defined(SH_WITH_SERVER)
    973       tempres = getpwnam(DEFAULT_IDENT);
    974       if (!tempres)
    975         tempres = sh_getpwnam(DEFAULT_IDENT);
     971      tempres = sh_getpwnam(DEFAULT_IDENT);
     972
    976973      if ((tempres != NULL) && (0 == sl_ret_euid()))
    977974        {
     
    10801077
    10811078#if defined(SH_WITH_SERVER)
    1082       struct passwd * e_tempres = getpwnam(DEFAULT_IDENT);
    1083       if (!e_tempres)
    1084         e_tempres = sh_getpwnam(DEFAULT_IDENT);
     1079      struct passwd * e_tempres = sh_getpwnam(DEFAULT_IDENT);
     1080
    10851081      if ((e_tempres != NULL) && (0 == sl_ret_euid()))   
    10861082        {
Note: See TracChangeset for help on using the changeset viewer.