The location of the account file(s) is set at compile
time from the values in 'files.h', which is created by 
'configure', which derives the values from 'configure.ac'.
Attached is a patch to 'configure.ac' to define the 
location of pacct as '/var/log/account/pacct'.  Applied
the patch and ran 'autoconf' to create the new 'configure'
script. 


--- configure.ac.bak	2010-05-09 01:36:39.000000000 -0400
+++ configure.ac	2010-05-09 01:40:48.000000000 -0400
@@ -187,7 +187,7 @@
 
 #ifndef ACCT_FILE
 #  if defined(__FreeBSD__) || defined(__linux__)
-#    define ACCT_FILE "/var/account/pacct"
+#    define ACCT_FILE "/var/log/account/pacct"
 #  else
 #    if defined(__NetBSD__)
 #      define ACCT_FILE "/var/account/acct"
@@ -207,7 +207,7 @@
 
 #ifndef SAVACCT_FILE
 #  if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__)
-#    define SAVACCT_FILE "/var/account/savacct"
+#    define SAVACCT_FILE "/var/log/account/savacct"
 #  else
 #    if defined(sun) || defined(AMIX)
 #      define SAVACCT_FILE "/var/adm/savacct"
@@ -223,7 +223,7 @@
 
 #ifndef USRACCT_FILE
 #  if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__)
-#    define USRACCT_FILE "/var/account/usracct"
+#    define USRACCT_FILE "/var/log/account/usracct"
 #  else
 #    if defined(sun) || defined(AMIX)
 #      define USRACCT_FILE "/var/adm/usracct"

Reply via email to