diff options
author | Sami Kerola | 2015-02-20 20:42:34 +0100 |
---|---|---|
committer | Karel Zak | 2015-03-05 10:31:18 +0100 |
commit | 3f51c10b39920bd22a2760bd57cb5a5703b0ec2c (patch) | |
tree | a51de75050abde97cff38f5b1b9615b8d88517e2 /misc-utils/logger.1 | |
parent | tailf: ensure file argument really is a file (diff) | |
download | kernel-qcow2-util-linux-3f51c10b39920bd22a2760bd57cb5a5703b0ec2c.tar.gz kernel-qcow2-util-linux-3f51c10b39920bd22a2760bd57cb5a5703b0ec2c.tar.xz kernel-qcow2-util-linux-3f51c10b39920bd22a2760bd57cb5a5703b0ec2c.zip |
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>
Diffstat (limited to 'misc-utils/logger.1')
-rw-r--r-- | misc-utils/logger.1 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1 index a855cdf1d..994616e61 100644 --- a/misc-utils/logger.1 +++ b/misc-utils/logger.1 @@ -58,7 +58,10 @@ syslog port defined in /etc/services, which is often 514 . Log the contents of the specified \fIfile\fR. This option cannot be combined with a command-line message. .TP -.BR \-i , " \-\-id" [ = \fIid ] +.B \-i +Log the PID of the logger process with each line. +.TP +.BR "\-\-id" [ =\fIid ] Log the PID of the logger process with each line. When the optional argument \fIid\fR is specified, then it is used instead of the logger command's PID. The use of \fB\-\-id=$$\fR |