aboutsummaryrefslogtreecommitdiff
path: root/src/inetd.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 11:36:33 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 12:25:47 +0200
commit6e73a7b0822d1fd506c75a662070f447bba94afb (patch)
treee121c440aff73316cb43ec05295e2c32492bf5dc /src/inetd.c
parent584266f8215d913ce0c226f63da51c77d1074f09 (diff)
downloadpies-6e73a7b0822d1fd506c75a662070f447bba94afb.tar.gz
pies-6e73a7b0822d1fd506c75a662070f447bba94afb.tar.bz2
Improve logging
* po/POTFILES.in: Add missing source files. * grecs: Upgrade. * src/diag.c (pies_diag_printer): New function. (logfuncall): New function. * src/pies.h: Add new prototypes. * src/pies.c (main): Initialize grecs_print_diag_fun * src/acl.c: Uniformly use double-quotes in messages. Use logfuncall where applicable. * src/comp.c: Likewise. * src/ctl.c: Likewise. * src/inetd-bi.c: Likewise. * src/inetd.c: Likewise. * src/limits.c: Likewise. * src/piesctl.c: Likewise. * src/progman.c: Likewise. * src/socket.c: Likewise. * src/sysvinit.c: Likewise.
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.