The cfenvd binary crashes under AIX: - a couple array overruns
- prototype.h does not correctly turn on the use of prototypes for the 5.0 AIX "cc" compiler. This causes incorrect argument passing in cfenvd.c, causing a crash. I switched to the xlC_r compiler, and this requires elimination of a trailing comma in cfshow.c. --- src/cfenvd.c.~1~ 2005-07-15 11:16:04.000000000 -0400 +++ src/cfenvd.c 2006-01-12 14:53:31.000000000 -0500 @@ -1217,7 +1217,7 @@ PrependItem(&ALL_INCOMING,sp,NULL); } - for (sp = remote+strlen(remote); !isdigit((int)*sp); sp--) + for (sp = remote+strlen(remote); sp>=remote&&!isdigit((int)*sp); sp--) { } @@ -1244,7 +1244,7 @@ AppendItem(&in[i],VBUFF,""); } - for (spend = remote+strlen(remote)-1; isdigit((int)*spend); spend--) + for (spend = remote+strlen(remote)-1; spend>=remote&&isdigit((int)*spend); spend--) { } --- src/cfshow.c.~1~ 2005-02-10 15:19:37.000000000 -0500 +++ src/cfshow.c 2006-01-13 09:41:43.000000000 -0500 @@ -36,7 +36,7 @@ cf_db_lastseen, cf_db_locks, cf_db_active, - cf_db_checksum, + cf_db_checksum }; enum databases TODO = -1; -- Joe Buehler _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine