update Sat Jan 16 12:37:00 PST 2010
[pkgsrc.git] / sysutils / foremost / patches / patch-ac
1 $NetBSD: patch-ac,v 1.1.1.1 2007/01/26 16:36:29 minskim Exp $
2
3 --- config.c.orig       2006-08-26 09:02:14.000000000 +0200
4 +++ config.c
5 @@ -285,11 +285,8 @@ int load_config_file(f_state *s)
6  
7                 /*Can't find  a conf in the current directory
8      * So lets try the /usr/local/etc*/
9 -#ifdef __WIN32
10 -               set_config_file(s, "/Program Files/foremost/foremost.conf");
11 -#else
12 -               set_config_file(s, "/usr/local/etc/foremost.conf");
13 -#endif
14 +
15 +               set_config_file(s,CONFDIR "/" DEFAULT_CONFIG_FILE);
16                 if ((f = fopen(get_config_file(s), "r")) == NULL)
17                         {
18                         print_error(s, get_config_file(s), strerror(errno));