summaryrefslogtreecommitdiff
path: root/src/daemontools-extras
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-02-24 22:26:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-02-24 22:26:25 +0000
commit6c22a2f1b48ed20bb06d3359c71683392653b11a (patch)
tree65aebd47fe08536b72511b803bc60f19b69e275e /src/daemontools-extras
parent2ef5f87d7e7dfcde3a515307f18d5e1584f8e57e (diff)
downloads6-6c22a2f1b48ed20bb06d3359c71683392653b11a.tar.xz
Bugfix: wrong selection amount in s6-log's second pass - thanks Patrick Mahoney.
Diffstat (limited to 'src/daemontools-extras')
-rw-r--r--src/daemontools-extras/s6-log.c2
1 files changed, 1 insertions, 1 deletions
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' :