Add a little detail to the syslog-msg that comes up when lpd can not

execute a given filter.

MFC after:	4 days
This commit is contained in:
Garance A Drosehn 2002-04-19 18:28:35 +00:00
parent bfe7ad2431
commit 150508c64d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95067

View File

@ -808,7 +808,8 @@ print(struct printer *pp, int format, char *file)
closelog();
closeallfds(3);
execv(prog, av);
syslog(LOG_ERR, "cannot execv %s", prog);
syslog(LOG_ERR, "%s: cannot execv(%s): %m", pp->printer,
prog);
exit(2);
}
(void) close(fi);
@ -1244,7 +1245,7 @@ execfilter(struct printer *pp, char *f_cmd, char *f_av[], int infd, int outfd)
closelog();
closeallfds(3);
execv(f_cmd, f_av);
syslog(LOG_ERR, "%s: cannot execv %s", pp->printer, f_cmd);
syslog(LOG_ERR, "%s: cannot execv(%s): %m", pp->printer, f_cmd);
exit(2);
/* NOTREACHED */
}