/[mailutils]/mailutils/auth/virtual.c
ViewVC logotype

Diff of /mailutils/auth/virtual.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by gray, Tue Aug 13 14:50:41 2002 UTC revision 1.3 by gray, Wed Aug 14 12:09:06 2002 UTC
# Line 55  getpwnam_virtual (char *u) Line 55  getpwnam_virtual (char *u)
55    size_t i = 0, len = strlen (u), delim = 0;    size_t i = 0, len = strlen (u), delim = 0;
56    char *filename;    char *filename;
57    
   mu_virtual_domain = 0;  
58    for (i = 0; i < len && delim == 0; i++)    for (i = 0; i < len && delim == 0; i++)
59      if (u[i] == '!' || u[i] == ':' || u[i] == '@')      if (u[i] == '!' || u[i] == ':' || u[i] == '@')
60        delim = i;        delim = i;
# Line 76  getpwnam_virtual (char *u) Line 75  getpwnam_virtual (char *u)
75      while ((pw = fgetpwent (pfile)) != NULL)      while ((pw = fgetpwent (pfile)) != NULL)
76        {        {
77          if (strlen (pw->pw_name) == delim && !strncmp (u, pw->pw_name, delim))          if (strlen (pw->pw_name) == delim && !strncmp (u, pw->pw_name, delim))
78            {            break;
             mu_virtual_domain = 1;  
             break;  
           }  
79        }        }
80    
81    return pw;    return pw;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26