[prev in list] [next in list] [prev in thread] [next in thread]
List: pam-list
Subject: Re: ... oops .. [pam_listfile patch that compiles]
From: Savochkin Andrey Vladimirovich <saw () msu ! ru>
Date: 1998-07-13 18:27:04
[Download RAW message or body]
On Sun, Jul 12, 1998 at 12:40:08AM -0700, Andrew Morgan wrote:
>
> Sorry for that. This patch seems to compile.
>
> Andrew :*)
Hi, Andrew!
I've just verified the patch on my system.
I found a problem with a retval check.
The original author abused the variable for storing a result
of a string comparison.
With the following change
--- modules/pam_listfile/pam_listfile.c.orig Mon Jul 13 22:02:14 1998
+++ modules/pam_listfile/pam_listfile.c Mon Jul 13 22:13:15 1998
@@ -394,8 +394,8 @@
}
fclose(inf);
free(ifname);
- if((sense && retval == PAM_AUTH_ERR)
- || (!sense && retval == PAM_SUCCESS)) {
+ if((sense && retval)
+ || (!sense && !retval)) {
#ifdef DEBUG
syslog(LOG_INFO,"Returning PAM_SUCCESS, retval = %d", retval);
#endif
the module works well for me.
Best wishes
Andrey
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic