diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-04 14:57:31 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-04 14:57:31 -0500 |
commit | 86af7f631080bc4b45846bd7f382c4cedcbec2b4 (patch) | |
tree | d92510da292edeaacdebb2b84fc5fe61e1b9159f /src/kernel/fat.c | |
parent | 922470255bef5d09e2c12cc2b6597e629f3b2581 (diff) | |
download | portland-os-86af7f631080bc4b45846bd7f382c4cedcbec2b4.tar.gz |
making fs drivers ignore already open files during kernel setup and when opening init for the first time
Diffstat (limited to 'src/kernel/fat.c')
-rw-r--r-- | src/kernel/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/fat.c b/src/kernel/fat.c index e328f61..b342267 100644 --- a/src/kernel/fat.c +++ b/src/kernel/fat.c @@ -238,7 +238,7 @@ static file_id_t fat_get_file(const struct drive *d, const char *path) { return 0; } - if (cur_dir->extra_attrib & FEA_OPEN_EXCLUSIVE) { + if (!ignore_already_open && (cur_dir->extra_attrib & FEA_OPEN_EXCLUSIVE)) { d->done(d); return 0;//maybe have a special return value for this? } |