dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
b394b9
From f4ffe3de3ba721892af52c7ed5787f4470393242 Mon Sep 17 00:00:00 2001
b394b9
From: Karel Zak <kzak@redhat.com>
b394b9
Date: Tue, 21 Jun 2016 13:35:33 +0200
b394b9
Subject: [PATCH 74/84] logger: be more precise about --port description
b394b9
b394b9
Upstream: http://github.com/karelzak/util-linux/commit/1c7227598824b1d9140298e9fe5742cae4131130
b394b9
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=1344222
b394b9
Signed-off-by: Karel Zak <kzak@redhat.com>
b394b9
---
b394b9
 misc-utils/logger.1 | 1 +
b394b9
 misc-utils/logger.c | 2 +-
b394b9
 2 files changed, 2 insertions(+), 1 deletion(-)
b394b9
b394b9
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1
b394b9
index 5eb8d09..8c4faca 100644
b394b9
--- a/misc-utils/logger.1
b394b9
+++ b/misc-utils/logger.1
b394b9
@@ -72,6 +72,7 @@ port defined in /etc/services, which is often
b394b9
 \fB\-P\fR, \fB\-\-port\fR \fIport\fR
b394b9
 Use the specified
b394b9
 .IR port .
b394b9
+When this option is not specified, the port defaults to syslog for udp and to syslog-conn for tcp connections.
b394b9
 .TP
b394b9
 \fB\-i\fR, \fB\-\-id\fR
b394b9
 Log the process ID of the logger process with each line.
b394b9
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
b394b9
index c83c0b8..a331869 100644
b394b9
--- a/misc-utils/logger.c
b394b9
+++ b/misc-utils/logger.c
b394b9
@@ -222,7 +222,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
b394b9
 		" -f, --file <file>     log the contents of this file\n"
b394b9
 		" -h, --help            display this help text and exit\n"), out);
b394b9
 	fputs(_(" -n, --server <name>   write to this remote syslog server\n"
b394b9
-		" -P, --port <number>   use this UDP port\n"
b394b9
+		" -P, --port <port>     use this port for UDP or TCP connection\n"
b394b9
 		" -p, --priority <prio> mark given message with this priority\n"
b394b9
 		" -s, --stderr          output message to standard error as well\n"), out);
b394b9
 	fputs(_(" -t, --tag <tag>       mark every line with this tag\n"
b394b9
-- 
b394b9
2.7.4
b394b9