psacct/psacct-6.3.2-64bit-fixes.patch
cvsdist ef51846ea2 auto-import changelog data from psacct-6.3.2-18.src.rpm
Tue Mar 26 2002 Mike A. Harris <mharris@redhat.com> 6.3.2-18
- Fixed duh in initscript pointing to wrong accounting file (#61939)
Sun Mar 17 2002 Mike A. Harris <mharris@redhat.com> 6.3.2-17
- Removed the files usracct and savacct, which are not used by psacct
    utilities at all, but by the sa program. Our sa uses files in a
    different location, and so these files are unused and unnecessary.
Sat Mar 16 2002 Mike A. Harris <mharris@redhat.com> 6.3.2-16
- Added chkconfig to post and preun scripts for bug (#61191)
Tue Mar 12 2002 Mike A. Harris <mharris@redhat.com> 6.3.2-15
- Added new feature - psacct initscript now controls process accounting so
    that it is not just forced on if installed as was the previous
    behaviour
- Modified the initscripts package to not force psacct on anymore and made
    the new psacct-6.3.2-15 conflict with previous initscripts packages.
- Fixed logrotate config to set perms/owner of new log files, and closed
    bug (#54165)
Thu Mar 07 2002 Mike A. Harris <mharris@redhat.com> 6.3.2-14
- Fixed 64bit bug in calls to ctime() in lastcomm and dump-utmp (#60712)
Wed Mar 06 2002 Mike A. Harris <mharris@redhat.com> 6.3.2-13
- Removed Build_7x flag, added FHS_compliant flag, reworked specfile to use
    new flag, and fixed bug (#60716)
Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 6.3.2-12
- rebuild in new environment for FHS correctness
Thu Jan 31 2002 Mike A. Harris <mharris@redhat.com> 6.3.2-11
- Conditionalized acct-6.3.2-config.patch to only be applied for RHL 7.x
    builds, as it breaks FHS compliance by putting files in nonstandard
    locations. Also fixed up other places in specfile for FHS 2.2.
- Added acct-6.3.2-I-HATE-GNU-AUTOCONK.patch because I hate GNU autoconk
    really really badly.
- Bumped to -11 to avoid buildsystem stupidness
2004-09-09 10:47:19 +00:00

47 lines
1.1 KiB
Diff

--- ./lastcomm.c.64bit-fixes Mon Oct 13 20:28:36 1997
+++ ./lastcomm.c Thu Mar 7 06:56:00 2002
@@ -238,6 +238,7 @@
parse_entries (void)
{
struct acct *rec; /* the current record */
+ time_t btime; /* Fix for call to ctime for 64bit architectures */
/* loop while there are entries to be had */
@@ -313,11 +314,12 @@
else
#endif
putchar (' ');
-
+
+ btime = (time_t) rec->ac_btime;
printf (" %-8.8s %-8.8s %6.2f secs %-16.16s\n",
this_uid, this_dev,
((ut + st) / (double) AHZ),
- ctime (&rec->ac_btime));
+ ctime (&btime));
}
}
}
--- ./pacct_rd.c.64bit-fixes Mon Oct 13 20:28:36 1997
+++ ./pacct_rd.c Thu Mar 7 06:54:34 2002
@@ -61,6 +61,9 @@
void
print_pacct_record (struct acct *rec, FILE *out)
{
+ /* Fix for call to ctime for 64bit architectures */
+ time_t btime = (time_t)rec->ac_btime;
+
fprintf (stddebug, "%-*.*s|", COMM_LEN, COMM_LEN, rec->ac_comm);
#define NUM_FORMAT "%6.1f"
@@ -117,7 +120,7 @@
);
#endif
- fprintf (stddebug, "%s", ctime ((time_t *) &(rec->ac_btime)));
+ fprintf (stddebug, "%s", ctime (&btime));
}