home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / pine / c-client / pat_os_ult.c < prev    next >
Text File  |  1994-01-09  |  474b  |  15 lines

  1. 62a63
  2. > #include <auth.h>
  3. 224a226
  4. >   struct authorization *au;
  5. 226,229c228,231
  6. <                 /* no entry for this user or root */
  7. <   if (!(pw && pw->pw_uid)) return NIL;
  8. <                 /* validate password */
  9. <   if (strcmp (pw->pw_passwd,(char *) crypt (pass,pw->pw_passwd))) return NIL;
  10. ---
  11. >                 /* validate user and password */
  12. >   if ((!(pw && pw->pw_uid && (au = getauthuid (pw->pw_uid)))) ||
  13. >       strcmp (au->a_password,(char *) crypt16 (pass,au->a_password)))
  14. >     return NIL;
  15.