aboutsummaryrefslogtreecommitdiff
path: root/src/inetd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inetd.c')
-rw-r--r--src/inetd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/inetd.c b/src/inetd.c
index ee16078..40fb6fe 100644
--- a/src/inetd.c
+++ b/src/inetd.c
@@ -355,8 +355,10 @@ inetd_conf_dir (const char *name)
if (stat (ent->d_name, &st))
{
- logmsg (LOG_ERR, _("cannot stat %s/%s: %s"),
- name, ent->d_name, strerror (errno));
+ int ec = errno;
+ char *name = mkfilename (name, ent->d_name, NULL);
+ logfuncall ("stat", name, ec);
+ free (name);
errs |= 1;
}
else if (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode))
@@ -383,7 +385,7 @@ inetd_config_parse (const char *file)
if (stat (file, &st))
{
- logmsg (LOG_ERR, _("cannot stat %s: %s"), file, strerror (errno));
+ logfuncall ("stat", file, errno);
return 1;
}
if (S_ISDIR (st.st_mode))

Return to:

Send suggestions and report system problems to the System administrator.