From e7d88f5e132034c95934689f5228506b2ec21796 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Wed, 9 Nov 2016 04:42:09 +0000 Subject: [PATCH] Fix missing '-' for the flags -s and -d on both manpage and usage. Reported by: garga, bde --- bin/hostname/hostname.1 | 4 ++-- bin/hostname/hostname.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/hostname/hostname.1 b/bin/hostname/hostname.1 index 73255d280041..4da9f63044cb 100644 --- a/bin/hostname/hostname.1 +++ b/bin/hostname/hostname.1 @@ -29,7 +29,7 @@ .\" @(#)hostname.1 8.2 (Berkeley) 4/28/95 .\" $FreeBSD$ .\" -.Dd November 9, 2016 +.Dd November 10, 2016 .Dt HOSTNAME 1 .Os .Sh NAME @@ -38,7 +38,7 @@ .Sh SYNOPSIS .Nm .Op Fl f -.Op Fl s|d +.Op Fl s | d .Op Ar name-of-host .Sh DESCRIPTION The diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c index 3b07b8b5f537..85b692eccdc4 100644 --- a/bin/hostname/hostname.c +++ b/bin/hostname/hostname.c @@ -108,6 +108,6 @@ static void usage(void) { - (void)fprintf(stderr, "usage: hostname [-f] [s|d] [name-of-host]\n"); + (void)fprintf(stderr, "usage: hostname [-f] [-s | -d] [name-of-host]\n"); exit(1); }