From 6d5b452ef5ef335821bd86eb9ad574acaa774f7b Mon Sep 17 00:00:00 2001 From: Flex Date: Fri, 2 Sep 2011 11:04:23 -0500 Subject: [PATCH] Do not ignore return code for custom script functions X-Gentoo-Bug: 380317 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380317 --- src/rc/runscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 8278f5b3..07bcfe77 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -1346,7 +1346,7 @@ runscript(int argc, char **argv) strerror(errno)); unhotplug(); } else - svc_exec(optarg, NULL); + retval = svc_exec(optarg, NULL); /* We should ensure this list is empty after * an action is done */