aboutsummaryrefslogtreecommitdiff
path: root/src/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/verify.c')
-rw-r--r--src/verify.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/verify.c b/src/verify.c
index b5880db..09451ea 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -102,10 +102,11 @@ fill_project_name(struct wy_triplet *trp)
return 1;
}
- fp = fopen(trp->file[file_directive].name, "r");
+ fp = fopenat_ro(trp->spool->source_fd, trp->file[file_directive].name);
if (!fp) {
- wy_log(LOG_ERR, _("cannot open file %s: %s"),
- trp->file[file_directive].name, strerror(errno));
+ wy_log(LOG_ERR, _("cannot open file %s/%s: %s"),
+ trp->spool->source_dir, trp->file[file_directive].name,
+ strerror(errno));
return 1;
}

Return to:

Send suggestions and report system problems to the System administrator.