﻿1
00:00:00,060 --> 00:00:01,150
‫Hello and welcome, everybody.

2
00:00:01,560 --> 00:00:04,770
‫This lecture is to fix a bug found in our kernel.

3
00:00:05,580 --> 00:00:12,690
‫So I just want us to go to source for Fatfat 16 dot C, and I just want you to scroll down to this function

4
00:00:13,050 --> 00:00:15,570
‫at sixteen, you fat item for directory item.

5
00:00:16,140 --> 00:00:18,600
‫And you'll see here on line five, six, two.

6
00:00:19,110 --> 00:00:20,460
‫Can you see the bug?

7
00:00:21,570 --> 00:00:22,530
‫The bug is simple.

8
00:00:22,530 --> 00:00:24,330
‫We set the directory in the type.

9
00:00:24,840 --> 00:00:29,190
‫However, we don't return so it always gets overwritten with a file.

10
00:00:30,420 --> 00:00:31,530
‫We didn't want that.

11
00:00:31,560 --> 00:00:33,840
‫That that is an actual bug right there.

12
00:00:33,840 --> 00:00:38,340
‫So to fix it, we're just going to go return F item.

13
00:00:40,000 --> 00:00:46,060
‫OK, and then that will ensure that whenever we have a subdirectory Ill just returned from there won't

14
00:00:46,060 --> 00:00:49,180
‫stop running this Xcode down here.

15
00:00:49,930 --> 00:00:53,200
‫So, yes, once you've done that, that should be the bug fixed for you.

16
00:00:53,860 --> 00:00:59,800
‫Um, make sure you do this, because otherwise, if you make subdirectories, they're not going to work

17
00:00:59,800 --> 00:01:00,370
‫properly.

18
00:01:00,520 --> 00:01:05,200
‫OK, so a nice, easy fix for a small bug.

19
00:01:05,800 --> 00:01:11,160
‫And yeah, I hope you have been doing well on this kernel development costs.

20
00:01:11,470 --> 00:01:17,740
‫If you have any questions, please use the Q&A to contact me or if it's more of a personal nature,

21
00:01:17,740 --> 00:01:19,510
‫send me a direct message.

22
00:01:19,720 --> 00:01:20,650
‫Thanks very much.

