Fix bug in "read" command.

Submitted by:	Dave Cornelius <dc@packetdesign.com>
This commit is contained in:
Archie Cobbs 2000-10-10 01:34:20 +00:00
parent e658d924da
commit f35e82dfe3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66904

View File

@ -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);
}