mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
boot2 doesn't need to say 'Can't find file boot.config.'
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
This commit is contained in:
parent
eae8225c4c
commit
4a1bb98b26
1 changed files with 2 additions and 5 deletions
|
|
@ -24,7 +24,7 @@
|
|||
* the rights to redistribute these changes.
|
||||
*
|
||||
* from: Mach, [92/04/03 16:51:14 rvb]
|
||||
* $Id: boot.c,v 1.19 1998/10/11 15:09:14 kato Exp $
|
||||
* $Id: boot.c,v 1.1 1999/02/03 08:39:08 kato Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
|
@ -373,10 +373,7 @@ readfile(char *path, char *buf, size_t nbytes)
|
|||
buf[0] = '\0';
|
||||
name = path;
|
||||
openstatus = openrd();
|
||||
if (openstatus != 0) {
|
||||
if (openstatus > 0)
|
||||
printf("Can't find file %s\n", name);
|
||||
} else {
|
||||
if (openstatus == 0) {
|
||||
/* XXX no way to determine file size. */
|
||||
read(buf, nbytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue