X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconf.c;h=c95664f7c286467ff5eba46c4c66b81b9b8e66f5;hb=863349638beb1eaab09e2a3d537c20a7913aef30;hp=0fb18ab1db1edd80ac44ce0becfbc5703b820128;hpb=f605ec47bed26362e24ffacf71c7ae5aeed3c230;p=tinc diff --git a/src/conf.c b/src/conf.c index 0fb18ab1..c95664f7 100644 --- a/src/conf.c +++ b/src/conf.c @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: conf.c,v 1.9.4.72 2003/08/02 21:34:10 guus Exp $ + $Id: conf.c,v 1.9.4.73 2003/08/08 12:24:52 guus Exp $ */ #include "system.h" @@ -545,7 +545,11 @@ FILE *ask_and_safe_open(const char *filename, const char *what, bool safe, const fn = xstrdup(filename); } - if(!strchr(fn, '/') || fn[0] != '/') { +#ifdef HAVE_MINGW + if(fn[0] != '\\' && fn[0] != '/' && !strchr(fn, ':')) { +#else + if(fn[0] != '/') { +#endif /* The directory is a relative path or a filename. */ char *p;