Magellan Linux

Annotation of /trunk/netkit-rsh/netkit-rsh-0.17-jbj5.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (hide annotations) (download)
Fri Jan 19 23:50:26 2007 UTC (17 years, 4 months ago) by niro
File size: 1003 byte(s)
new files

1 niro 97 --- netkit-rsh-0.17-pre20000412/rlogind/auth.c.jbj5 Sun Jun 18 11:18:37 2000
2     +++ netkit-rsh-0.17-pre20000412/rlogind/auth.c Sun Jun 18 11:21:37 2000
3     @@ -37,6 +37,7 @@
4     #include "rlogind.h"
5    
6     #ifdef USE_PAM
7     +#include <grp.h>
8    
9     /*
10     * Modifications for Linux-PAM: Al Longyear <longyear@netcom.com>
11     @@ -158,18 +159,14 @@
12     pwd = getpwnam(localuser);
13     if (pwd==NULL) {
14     syslog(LOG_ERR, "user returned by PAM does not exist\n");
15     - /* don't print this - it tells people which accounts exist */
16     - /*fprintf(stderr, "rlogind: internal error\n");*/
17     return -1;
18     }
19     if (setgid(pwd->pw_gid) != 0) {
20     syslog(LOG_ERR, "cannot assume gid for user returned by PAM\n");
21     - fprintf(stderr, "rlogind: internal error\n");
22     return -1;
23     }
24     if (initgroups(localuser, pwd->pw_gid) != 0) {
25     syslog(LOG_ERR, "initgroups failed for user returned by PAM\n");
26     - fprintf(stderr, "rlogind: internal error\n");
27     return -1;
28     }
29     retval = pam_setcred(pamh, PAM_ESTABLISH_CRED);