freebsd-ports/sysutils/ckl/files/patch-src-conf.c
Sylvio Cesar Teixeira e3a5b1ddfa A command line tool for noting when something was changed on a machine.
The contents of the message are POST'ed to another server for logging.

WWW: http://github.com/pquerna/ckl

PR:		ports/147261
Submitted by:	Tomaz Muraus <kami@k5-storitve.net>
2010-06-02 21:01:10 +00:00

27 lines
598 B
C

*** src/conf.c.orig Sun Jan 24 02:46:27 2010
--- src/conf.c Tue Jun 1 07:19:59 2010
***************
*** 86,96 ****
{
int rv;
FILE *fp;
/* TODO: respect prefix */
! fp = fopen("/etc/cloudkick.conf", "r");
if (fp == NULL) {
char buf[2048];
const char *home = getenv("HOME");
if (home == NULL) {
--- 86,96 ----
{
int rv;
FILE *fp;
/* TODO: respect prefix */
! fp = fopen("/usr/local/etc/cloudkick.conf", "r");
if (fp == NULL) {
char buf[2048];
const char *home = getenv("HOME");
if (home == NULL) {