From: Donald Sharp Date: Tue, 1 Mar 2016 02:20:14 +0000 (-0500) Subject: lib, vtysh: Fix 'banner motd file' command X-Git-Tag: frr-2.0-rc1~1088 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4d833e556ac21f11ca0097125293085aa1708bc4;p=mirror%2Ffrr.git lib, vtysh: Fix 'banner motd file' command the File to specify was inadvertently a optional parameter. Dissallow this. Ticket: CM-9431 Signed-off-by: Donald Sharp Reviewed-by: Daniel Walton --- diff --git a/lib/command.c b/lib/command.c index 037835e1df..14e888b9f3 100644 --- a/lib/command.c +++ b/lib/command.c @@ -4016,7 +4016,7 @@ cmd_banner_motd_file (const char *file) DEFUN (banner_motd_file, banner_motd_file_cmd, - "banner motd file [FILE]", + "banner motd file FILE", "Set banner\n" "Banner for motd\n" "Banner from a file\n" diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c index f31c5d623f..3e77264235 100644 --- a/vtysh/vtysh_user.c +++ b/vtysh/vtysh_user.c @@ -175,8 +175,11 @@ user_get (const char *name) DEFUN (banner_motd_file, banner_motd_file_cmd, - "banner motd file [FILE]", - "\n\n\n\n") + "banner motd file FILE", + "Set banner\n" + "Banner for motd\n" + "Banner from a file\n" + "Filename\n") { return cmd_banner_motd_file (argv[0]); }