From 6c22a2f1b48ed20bb06d3359c71683392653b11a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 24 Feb 2015 22:26:25 +0000 Subject: Bugfix: wrong selection amount in s6-log's second pass - thanks Patrick Mahoney. --- src/daemontools-extras/s6-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemontools-extras') diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index 3e1d0ce..12b2220 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -810,7 +810,6 @@ static inline void script_secondpass (char const *const *argv, scriptelem_t *scr } if (r) goto fail ; } - selections[sel++] = selitem ; if (flagacted) { flagacted = 0 ; @@ -822,6 +821,7 @@ static inline void script_secondpass (char const *const *argv, scriptelem_t *scr actions += act ; act = 0 ; script++ ; } + selections[sel++] = selitem ; break ; } case 'n' : -- cgit v1.2.3