compilation fix for fedora 6 (maybe earlier)
Brought to you by:
matheny
This is a change that was necessary to get CPU to compile under fedora core 6. I seem to recall that I also had to apply it to an earlier fedora release, but don't recall the details.
In src/plugins/ldap/commandline.c around line 86 there is the following line:
(int) passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;
which results in "commandline.c:86: error: invalid lvalue in assignment"
Changing it to be the following fixed the problem:
passent->sp_lstchg = -10;
passent->sp_min = -10;
passent->sp_max = -10;
Logged In: NO
this needs to be changed for RHEL 5 as well.
Logged In: YES
user_id=345312
Originator: NO
I think this patch is sufficient:
-(int) passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;
+passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;