From 62118ce6963d049326bd94cead782dfd91c67b48 Mon Sep 17 00:00:00 2001 From: archie Date: Tue, 10 Oct 2000 01:34:20 +0000 Subject: Fix bug in "read" command. Submitted by: Dave Cornelius --- usr.sbin/ngctl/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ngctl/main.c') diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c index 9668fbe..5e9411c 100644 --- a/usr.sbin/ngctl/main.c +++ b/usr.sbin/ngctl/main.c @@ -363,9 +363,11 @@ ReadCmd(int ac, char **av) /* Open file */ switch (ac) { case 2: - if ((fp = fopen(av[1], "r")) == NULL) + if ((fp = fopen(av[1], "r")) == NULL) { warn("%s", av[1]); - return(CMDRTN_ERROR); + return(CMDRTN_ERROR); + } + break; default: return(CMDRTN_USAGE); } -- cgit v1.1