]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/logger.c
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, 5 Mar 2015 09:31:18 +0000 (10:31 +0100)
commit3f51c10b39920bd22a2760bd57cb5a5703b0ec2c
treea51de75050abde97cff38f5b1b9615b8d88517e2
parent9195eca64dcb9f25fec431fa24a3be6a8212b769
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