Skip to contentSkip to conversation

master - man: print space before built-in name

PATCH David Teigland 1 participant 1 message Feb 17, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fab0d63121f0ac59996526db40b70cb1efceb306
Commit:        fab0d63121f0ac59996526db40b70cb1efceb306
Parent:        87fe9328d30660e2eecd990bfce893ae65817f44
Author:        David Teigland <[email protected]>
AuthorDate:    Fri Feb 17 15:33:04 2017 -0600
Committer:     David Teigland <[email protected]>
CommitterDate: Fri Feb 17 15:33:35 2017 -0600

man: print space before built-in name

print 'lvm config' not 'lvm-config'

---
 tools/command.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
tools/command.c +4 -1
index 2897c65..0ec5176 100644
@@ -2636,8 +2636,11 @@ void print_man(char *name, char *des_file, int include_primary, int include_seco
 	char *lvmname = name;
 	int i;
 
-	if (!strncmp(name, "lvm-", 4))
+	if (!strncmp(name, "lvm-", 4)) {
+		char *space = strchr(lvmname, '-');
+		*space = ' ';
 		name += 4;
+	}
 
 	cname = find_command_name(name);