summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-05-15 23:01:19 +0000
committerBill Marquette <billm@pfsense.org>2005-05-15 23:01:19 +0000
commit4e0d02b3aaef576bfb88de9cbe58c604afdec590 (patch)
tree1c9446beb07a15cc325c2b3575979df0b5971c9f
parent67f7b203af2f42fd2585cb2fbd9824eb51d92ac2 (diff)
downloadpfsense-4e0d02b3aaef576bfb88de9cbe58c604afdec590.zip
pfsense-4e0d02b3aaef576bfb88de9cbe58c604afdec590.tar.gz
Log what script was running when write_config() was called so we aren't
leaving user completely in the blind as to what the change corresponds to
-rw-r--r--etc/inc/config.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 98584c0..9640f7f 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -514,6 +514,10 @@ function write_config($desc="Unknown") {
if (time() > mktime(0, 0, 0, 9, 1, 2004)) /* make sure the clock settings are plausible */
$changetime = time();
+ /* Log the running script so it's not entirely unlogged what changed */
+ if ($desc == "Unknown")
+ $desc = "Unknown change in {$_SERVER['SCRIPT_NAME']}";
+
$config['revision']['description'] = $desc;
$config['revision']['time'] = $changetime;
OpenPOWER on IntegriCloud