1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00
serenity/Kernel/FileSystem
Sergey Bugaev 75df45d709 Kernel: Fix comparing StringViews with strcmp().
StringView character buffer is not guaranteed to be null-terminated;
in particular it will not be null-terminated when making a substring.
This means that the buffer can not be used with C functions that expect
a null-terminated string. Instead, StringView provides a convinient
operator == for comparing it with Strings and C stirngs, so use that.

This fixes /proc/self/... resolution failures in ProcFS, since the name
("self") passed to ProcFSInode::lookup() would not be null-terminated.
2019-06-12 16:14:29 +02:00
..
Custody.cpp Kernel: Run clang-format on everything. 2019-06-07 11:43:58 +02:00
Custody.h FileSystem: Reuse existing custodies when possible, and keep them updated. 2019-05-31 15:22:52 +02:00
DevPtsFS.cpp Kernel: Run clang-format on everything. 2019-06-07 11:43:58 +02:00
DevPtsFS.h Add clang-format file 2019-05-28 17:31:20 +02:00
DiskBackedFileSystem.cpp Kernel: Move i386.{cpp,h} => Arch/i386/CPU.{cpp,h} 2019-06-07 20:02:01 +02:00
DiskBackedFileSystem.h Kernel: Add a write cache to DiskBackedFS. 2019-04-25 22:05:53 +02:00
ext2_fs.h Add clang-format file 2019-05-28 17:31:20 +02:00
ext2_types.h Add clang-format file 2019-05-28 17:31:20 +02:00
Ext2FileSystem.cpp Kernel: Fix comparing StringViews with strcmp(). 2019-06-12 16:14:29 +02:00
Ext2FileSystem.h Ext2FS: Move directory writing logic into Ext2FSInode. 2019-06-09 12:46:23 +02:00
FIFO.cpp Kernel: Run clang-format on everything. 2019-06-07 11:43:58 +02:00
FIFO.h Meta: Tweak .clang-format to not wrap braces after enums. 2019-06-07 17:13:23 +02:00
FileDescription.cpp Kernel: Rename LinearAddress => VirtualAddress. 2019-06-07 12:56:50 +02:00
FileDescription.h Meta: Tweak .clang-format to not wrap braces after enums. 2019-06-07 17:13:23 +02:00
FileSystem.cpp Kernel: Run clang-format on everything. 2019-06-07 11:43:58 +02:00
FileSystem.h Kernel: Rename FileDescriptor to FileDescription. 2019-06-07 09:36:51 +02:00
Inode.cpp Kernel: Run clang-format on everything. 2019-06-07 11:43:58 +02:00
Inode.h Kernel: Use StringView more in Inode and subclasses. 2019-06-09 10:25:19 +02:00
InodeFile.cpp Kernel: Rename LinearAddress => VirtualAddress. 2019-06-07 12:56:50 +02:00
InodeFile.h Kernel: Rename LinearAddress => VirtualAddress. 2019-06-07 12:56:50 +02:00
InodeIdentifier.h FileSystem: Reuse existing custodies when possible, and keep them updated. 2019-05-31 15:22:52 +02:00
InodeMetadata.h FileSystem: Don't create a temporary FileDescriptor every time we stat(). 2019-06-01 18:46:39 +02:00
ProcFS.cpp Kernel: Fix comparing StringViews with strcmp(). 2019-06-12 16:14:29 +02:00
ProcFS.h Kernel: Use StringView more in Inode and subclasses. 2019-06-09 10:25:19 +02:00
SyntheticFileSystem.cpp Kernel: Use StringView more in Inode and subclasses. 2019-06-09 10:25:19 +02:00
SyntheticFileSystem.h Kernel: Use StringView more in Inode and subclasses. 2019-06-09 10:25:19 +02:00
VirtualFileSystem.cpp FileSystem: Don't perform path resolution twice for open() with O_CREAT. 2019-06-09 19:52:03 +02:00
VirtualFileSystem.h FileSystem: Don't perform path resolution twice for open() with O_CREAT. 2019-06-09 19:52:03 +02:00