diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-09-17 02:43:41 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-09-17 02:43:41 +0000 |
commit | af99a3da833ae828803443658f1da4a2cef2aa80 (patch) | |
tree | 29cd8b62c2042ff60671dab4e550c37aee61973b | |
parent | 7b2faca5b09131f1559a65a3487cee16fe3393c6 (diff) | |
download | s6-rc-af99a3da833ae828803443658f1da4a2cef2aa80.tar.xz |
Cosmetic changes in s6-rc-update
-rw-r--r-- | src/s6-rc/s6-rc-update.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc-update.c b/src/s6-rc/s6-rc-update.c index dcc4aeb..8cbc14f 100644 --- a/src/s6-rc/s6-rc-update.c +++ b/src/s6-rc/s6-rc-update.c @@ -164,6 +164,8 @@ static inline void fill_convtable_and_flags (unsigned char *conversion_table, un if (r < 0) strerr_diefu3sys(111, "read ", newfn, "/resolve.cdb") ; if (!r) { + if (oldstate[i] & 16) + strerr_dief4x(4, "bad conversion file: new service ", newname, " is undefined in database ", newfn) ; oldstate[i] |= 34 ; /* disappeared */ continue ; } @@ -185,7 +187,7 @@ static inline void fill_convtable_and_flags (unsigned char *conversion_table, un if (x >= newn) strerr_dief3x(4, "invalid resolve database in ", newfn, "/resolve.cdb") ; if (newstate[x] & 8) - strerr_dief4x(6, "bad conversion file: new service ", newdb->string + newdb->services[x].name, " is a target for more than one conversion, including old service ", olddb->string + olddb->services[i].name) ; + strerr_diefu4x(6, "convert database: new service ", newdb->string + newdb->services[x].name, " is a target for more than one conversion, including old service ", olddb->string + olddb->services[i].name) ; newstate[x] |= 8 ; invimage[x] = i ; bitarray_set(conversion_table + i * bitarray_div8(newn), x) ; |