dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

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

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