Blame SOURCES/0074-logger-be-more-precise-about-port-description.patch

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