Changeset 111 for trunk/src/trustfile.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/trustfile.c

    r76 r111  
    429429          /* map user name to UID and compare */
    430430#ifdef TRUST_MAIN
    431           if ((w = getpwnam(*p)) != NULL && *u == (uid_t)(w->pw_uid) )
     431          if ((w = sh_getpwnam(*p)) != NULL && *u == (uid_t)(w->pw_uid) )
    432432            SL_IRETURN(SL_TRUE, _("isingrp"));
    433433#else
     
    445445    {
    446446#ifdef TRUST_MAIN
    447       if ((w = getpwuid(*u)) != NULL && grp == (gid_t)(w->pw_gid) )
     447      if ((w = sh_getpwuid(*u)) != NULL && grp == (gid_t)(w->pw_gid) )
    448448        SL_IRETURN(SL_TRUE, _("isingrp"));
    449449#else
     
    961961  tf_path[0] = '\0';
    962962#if defined(SH_WITH_SERVER)
    963   pass = getpwnam(SH_IDENT);
     963  pass = sh_getpwnam(SH_IDENT);
    964964  if (pass != NULL)
    965965    tf_euid = pass->pw_uid;
Note: See TracChangeset for help on using the changeset viewer.