logutils: Fix special-casing of "nagios.log"
commit3119fecf7b983d0b453345ff4d0e4b0876001cc7
authorAndreas Ericsson <ae@op5.se>
Fri, 11 Dec 2009 11:41:35 +0000 (11 12:41 +0100)
committerAndreas Ericsson <ae@op5.se>
Fri, 11 Dec 2009 11:55:07 +0000 (11 12:55 +0100)
tree98adc7abf28aa1773148a668c59eacc87eea291b
parentd7c551e91a0f3f1e0d5436a49a6bce3b452caf90
logutils: Fix special-casing of "nagios.log"

Previously we unconditionally incremented the pointer to the
filename part of the path by one, meaning we'd always miss out
on "nagios.log" if it was specified without its full path.

This patch fixes that, and also changes the logic so that the
return value of path_cmp_number() to the highest signed int
the architecture we're dealing with can handle.

Signed-off-by: Andreas Ericsson <ae@op5.se>
logutils.c