Bug 187774 - sysutils/uptimed fix config path, prevent from config overwrite
Summary: sysutils/uptimed fix config path, prevent from config overwrite
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2014-03-19 22:40 UTC by Lukasz Wasikowski
Modified: 2014-07-27 00:42 UTC (History)
1 user (show)

See Also:

file.diff (1.65 KB, patch)
2014-03-19 22:40 UTC, Lukasz Wasikowski
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Wasikowski 2014-03-19 22:40:00 UTC
1) uptimed has hardcoded links to /etc/uprecords-cgi/ for config, footer and header files,

2) uptimed port installs uptimed.conf, uptimed.footer and uptimed.header files in cgi-bin directory regardles if those files were modified by user.

Fix: Patch is attached.

Patch attached with submission follows:
How-To-Repeat: Install sysutils/uptimed, modify PREFIX/www/cgi-bin config or header/footer files. Those modifications will be ignored because of hardcoded link to /etc/uprecords-cgi/

Reinstall sysutils/uptimed and check if your modifications of config or header/footer files are still there.
Comment 1 commit-hook freebsd_committer 2014-07-27 00:41:40 UTC
A commit references this bug:

Author: marino
Date: Sun Jul 27 00:40:30 UTC 2014
New revision: 363001
URL: http://svnweb.freebsd.org/changeset/ports/363001

  sysutils/uptimed: Fix config path and prevent config file overwrite

  PR:		187774
  Submitted by:	Lukasz Wasikowski

Comment 2 John Marino freebsd_committer 2014-07-27 00:42:44 UTC