From: Vincent Bernat Date: Fri, 22 Nov 2013 23:44:08 +0000 (+0100) Subject: coverity: if we cannot read /etc/localtime, don't go further X-Git-Tag: 0.7.8~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26667615414ce8f7a31613c19054be6a09514d3f;p=thirdparty%2Flldpd.git coverity: if we cannot read /etc/localtime, don't go further --- diff --git a/src/daemon/priv.c b/src/daemon/priv.c index e412d542..703489f0 100644 --- a/src/daemon/priv.c +++ b/src/daemon/priv.c @@ -458,6 +458,8 @@ priv_setup_chroot(const char *chrootdir) if ((source = open(LOCALTIME, O_RDONLY)) == -1) { if (errno == ENOENT) return; + log_warn("privsep", "cannot read " LOCALTIME); + return; } /* Prepare copy of /etc/localtime */