]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: fix -i argument parsing regression
authorSami Kerola <kerolasa@iki.fi>
Fri, 20 Feb 2015 19:42:34 +0000 (19:42 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2015 09:15:25 +0000 (10:15 +0100)
commit32881ca22daba4bff0520d150ef64b8b55036e73
treeb1dbacfb881c442aac3a29644bf805af270ece07
parent9efc3268cef117afdfc5b7cab03e4f91b384c3a3
logger: fix -i argument parsing regression

With earlier logger it's possible to combine the option -i with other
options, such as -s.  But currently:

$:~> logger -is
logger: failed to parse id: 's'

The changed behaviour breaks existing scripts like dhcpcd-run-hooks from
dhcpcd.

Broken-since: aab5b44405b9a6ada92e419e5a84cc0d1d4afee9
Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/9683
Reported-by: Juergen Daubert <jue@jue.li>
Reviewed-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/logger.1
misc-utils/logger.c