From 60162d011855e85bdf18a42cb6064da006a68156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 25 Jun 2020 19:10:29 +0200 Subject: [PATCH] fs_index: Clarified errno setting --- src/system/libroot/os/fs_index.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/libroot/os/fs_index.c b/src/system/libroot/os/fs_index.c index 89469e2aa1..52f082b727 100644 --- a/src/system/libroot/os/fs_index.c +++ b/src/system/libroot/os/fs_index.c @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008, Axel Dörfler, axeld@pinc-software.de. + * Copyright 2002-2020, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ @@ -67,6 +67,7 @@ fs_open_index_dir(dev_t device) // allocate the DIR structure if ((dir = __create_dir_struct(fd)) == NULL) { + // __create_dir_struct() already sets errno _kern_close(fd); return NULL; }