1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 21-fix_config-parsing.dpatch by Sven Mueller <debian@incase.de>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix parsing of master.conf
8
diff -urNad complete.dpatch/master/masterconf.c /tmp/dpep.CfovCR/complete.dpatch/master/masterconf.c
9
--- complete.dpatch/master/masterconf.c 2005-11-11 15:25:37.000000000 +0100
10
+++ /tmp/dpep.CfovCR/complete.dpatch/master/masterconf.c 2005-11-11 15:27:02.084797577 +0100
12
const char *val = masterconf_getstring(e, key, NULL);
15
- if (!isdigit((int) *val) &&
16
- (*val != '-' || !isdigit((int) val[1]))) return def;
17
+ if (!isdigit((int) *val) &&
18
+ (*val != '-' || !isdigit((int) val[1]))) {
19
+ syslog(LOG_DEBUG, "value '%s' for '%s' does not look like a number.",
28
(val[0] == 'o' && val[1] == 'n') || val[0] == 't') {
32
+ syslog(LOG_DEBUG, "cannot interpret value '%s' for key '%s'. use y/n.",