Package: uprecords-cgi
Version: 1:0.3.7-3
Severity: normal
Tags: patch
When uprecords is called as uprecords.cgi, it will look in the current
directory for the uprecords.conf, uprecords.header and uprecords.footer
files rather than /etc/uprecords-cgi/.
--- src/uprecords.c 2006-08-17 13:07:34.000000000 -0700
+++ src/uprecords.c.new 2006-08-17 13:07:23.000000000 -0700
@@ -58,7 +58,7 @@
/* Print header file. */
if (runas_cgi)
- cat("uprecords.header");
+ cat("/etc/uprecords-cgi/uprecords.header");
/* Read current uptime and entries from logfile. */
u_current=add_urec(read_uptime(), readbootid(), read_sysinfo());
@@ -85,7 +85,7 @@
/* Print footer file. */
if (runas_cgi)
- cat("uprecords.footer");
+ cat("/etc/uprecords-cgi/uprecords.footer");
return 0;
}
@@ -239,7 +239,7 @@
FILE *f;
char str[256];
- f=fopen("uprecords.conf", "r");
+ f=fopen("/etc/uprecords-cgi/uprecords.conf", "r");
if (!f)
return;
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages uprecords-cgi depends on:
ii debconf 1.5.3 Debian configuration management sy
ii uptimed 1:0.3.7-3 Utility to track your highest upti
Versions of packages uprecords-cgi recommends:
ii apache [httpd] 1.3.34-3 versatile, high-performance HTTP s
ii apache2-mpm-prefork [httpd] 2.0.55-4.1 traditional model for Apache2
-- debconf information:
* uprecords-cgi/install_note:
* uprecords-cgi/maxentries: 10
* uprecords-cgi/layout: pre
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]