From 5a80daaf4318fedf38af2e2a0df1f5a67e3670b0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 24 Mar 2008 13:09:42 +0000 Subject: Fix coldplug disabling. --- src/rc/rc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rc/rc.c b/src/rc/rc.c index 6c0a3fed..ff8995b2 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -549,7 +549,8 @@ static void do_coldplug(void) char *p; #endif - if (! rc_conf_yesno("rc_coldplug") && errno != ENOENT) + errno = 0; + if (!rc_conf_yesno("rc_coldplug") && errno != ENOENT) return; /* We need to ensure our state dirs exist. -- cgit v1.2.3