Package: watchdog
Version: 5.4-10
Severity: normal
An error message about a file that can't be found or that the process is not
permitted to open should at least contain the name of the file in question.
The following patch fixes this:
--- /tmp/watchdog.c 2010-01-05 12:06:04.000000000 +1100
+++ src/watchdog.c 2010-01-05 12:07:12.000000000 +1100
@@ -238,7 +238,7 @@
int gotload5 = FALSE, gotload15 = FALSE;
if ((wc = fopen(filename, "r")) == NULL) {
- perror(progname);
+ fprintf(stderr, "%s: Can't open config file \"%s\": %s\n", progname,
filename, strerror(errno));
exit(1);
}
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]