diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-24 22:26:25 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-24 22:26:25 +0000 |
commit | 6c22a2f1b48ed20bb06d3359c71683392653b11a (patch) | |
tree | 65aebd47fe08536b72511b803bc60f19b69e275e | |
parent | 2ef5f87d7e7dfcde3a515307f18d5e1584f8e57e (diff) | |
download | s6-6c22a2f1b48ed20bb06d3359c71683392653b11a.tar.xz |
Bugfix: wrong selection amount in s6-log's second pass - thanks Patrick Mahoney.
-rw-r--r-- | src/daemontools-extras/s6-log.c | 2 |
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' : |