Commit fec332b6 authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

triggers: make sure we only consider regular files

parent 3d7f1e91
......@@ -302,6 +302,8 @@ triggers_load(bool cleanup_only)
pkg_emit_errno("fstatat", e->d_name);
return (NULL);
}
if (!S_ISREG(st.st_mode))
continue;
t = trigger_load(dfd, e->d_name, cleanup_only, schema);
if (t != NULL)
DL_APPEND(triggers, t);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment