From: Tim Pepper Date: Mon, 27 Aug 2012 19:57:14 +0000 (-0700) Subject: Fix config file path X-Git-Tag: 2.1b_release~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=073b8fe6532337eaa942fdf3a38a02cf5204ee56;p=external%2Fcorewatcher.git Fix config file path For me 'make prefix=/usr libdir=/usr/lib64 sysconfdir=/etc install' put the configuration files in /etc/corewatcher/, but these files weren't looking in that subdirectory. Signed-off-by: Tim Pepper --- diff --git a/src/corewatcher-config.c b/src/corewatcher-config.c index 51de997..adefce5 100644 --- a/src/corewatcher-config.c +++ b/src/corewatcher-config.c @@ -1,7 +1,7 @@ #include #include -#define DEFAULT_FILE "/etc/corewatcher.conf" +#define DEFAULT_FILE "/etc/corewatcher/corewatcher.conf" #define DEFAULT_GROUP "corewatcher" int parse_arg(gchar *arg, gchar **group, gchar **key, gchar **value) diff --git a/src/corewatcher.c b/src/corewatcher.c index dfe8cd1..536b098 100644 --- a/src/corewatcher.c +++ b/src/corewatcher.c @@ -101,7 +101,7 @@ int main(int argc, char**argv) if (nice(15) < 0) perror("Can not set schedule priority"); - read_config_file("/etc/corewatcher.conf"); + read_config_file("/etc/corewatcher/corewatcher.conf"); while (1) { int c;