mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Fix bug in "read" command.
Submitted by: Dave Cornelius <dc@packetdesign.com>
This commit is contained in:
parent
e658d924da
commit
f35e82dfe3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66904
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user