Changeset View
Changeset View
Standalone View
Standalone View
stand/efi/libefi/efihttp.c
| Show First 20 Lines • Show All 559 Lines • ▼ Show 20 Lines | |||||
| static int | static int | ||||
| efihttp_fs_open(const char *path, struct open_file *f) | efihttp_fs_open(const char *path, struct open_file *f) | ||||
| { | { | ||||
| char *path_slash; | char *path_slash; | ||||
| int err; | int err; | ||||
| if (!efihttp_init_done) | if (!efihttp_init_done) | ||||
| return (ENXIO); | return (ENXIO); | ||||
| if (f->f_dev != &efihttp_dev) | |||||
| return (EINVAL); | |||||
| /* | /* | ||||
| * If any path fails to open, try with a trailing slash in | * If any path fails to open, try with a trailing slash in | ||||
| * case it's a directory. | * case it's a directory. | ||||
| */ | */ | ||||
| err = _efihttp_fs_open(path, f); | err = _efihttp_fs_open(path, f); | ||||
| if (err != 0) { | if (err != 0) { | ||||
| /* | /* | ||||
| * Work around a bug in the EFI HTTP implementation which | * Work around a bug in the EFI HTTP implementation which | ||||
| ▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines | |||||