Permalink
Browse files

VFIL_searchpath: Do not call back unless file exists

  • Loading branch information...
nigoroll committed Oct 12, 2017
1 parent d130e22 commit 8e9eb0ffe3ddd595fc654d5c03fc6a5e0a0557f9
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/libvarnish/vfil.c
View
@@ -390,6 +390,8 @@ VFIL_searchpath(const struct vfil_path *vp, vfil_path_func_f *func, void *priv,
VSB_clear(vsb);
VSB_printf(vsb, "%s/%s", vd->dir, fni);
AZ(VSB_finish(vsb));
if (access(VSB_data(vsb), F_OK))
continue;
i = func(priv, VSB_data(vsb));
if (i <= 0) {
e = errno;

0 comments on commit 8e9eb0f

Please sign in to comment.