X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconf.c;h=8282e2ffb09bacbc28b0168108dfec0c7f393608;hp=11a9ca08633c09414dc4b46752d76ce03d1a0227;hb=113198d9c0b3be9904057673cfed165406803f86;hpb=09260b43d1ff037c22f86c82a6af830e9a6d6ae5 diff --git a/src/conf.c b/src/conf.c index 11a9ca08..8282e2ff 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.27 2000/11/30 00:24:13 zarq Exp $ + $Id: conf.c,v 1.9.4.28 2000/11/30 21:11:03 zarq Exp $ */ #include "config.h" @@ -356,12 +356,14 @@ int is_safe_path(const char *file) } *p = '/'; - if(stat(file, &s) < 0) + if(stat(file, &s) < 0 && errno != ENOENT) { fprintf(stderr, _("Couldn't stat `%s': %m\n"), file); return 0; } + if(errno == ENOENT) + return 1; if(s.st_uid != geteuid()) { fprintf(stderr, _("`%s' is owned by UID %d instead of %d.\n"),