serenity/Userland/Libraries/LibCore
Ali Mohammad Pur 7edc69dc94 LibCore: Ignore non-S_IFMT bits in directory_entry_type_from_stat
The st_mode field in struct stat is a bitfield of more than just the
file type, this commit masks off the non-filetype bits to ensure no
unrelated bits are checked.
2023-12-01 20:46:16 +01:00
..
Account.cpp
Account.h
AnonymousBuffer.cpp
AnonymousBuffer.h
ArgsParser.cpp
ArgsParser.h
CMakeLists.txt
Command.cpp
Command.h
ConfigFile.cpp
ConfigFile.h
DateTime.cpp
DateTime.h
Debounce.h
DeferredInvocationContext.h
Directory.cpp
Directory.h
DirectoryEntry.cpp
DirectoryEntry.h
DirIterator.cpp
DirIterator.h
ElapsedTimer.cpp
ElapsedTimer.h
Event.cpp
Event.h
EventLoop.cpp
EventLoop.h
EventLoopImplementation.cpp
EventLoopImplementation.h
EventLoopImplementationUnix.cpp
EventLoopImplementationUnix.h
EventReceiver.cpp
EventReceiver.h
File.cpp
File.h
FilePermissionsMask.cpp
FilePermissionsMask.h
FileWatcher.h
FileWatcherLinux.cpp
FileWatcherMacOS.mm
FileWatcherSerenity.cpp
FileWatcherUnimplemented.cpp
Forward.h
GetPassword.cpp
GetPassword.h
Group.cpp
Group.h
LocalServer.cpp
LocalServer.h
LockFile.cpp
LockFile.h
MappedFile.cpp
MappedFile.h
MimeData.cpp
MimeData.h
NetworkJob.cpp
NetworkJob.h
NetworkResponse.h
Notifier.cpp
Notifier.h
Process.cpp
Process.h
ProcessStatisticsReader.cpp
ProcessStatisticsReader.h
Promise.h
Proxy.h
Resource.cpp
Resource.h
ResourceImplementation.cpp
ResourceImplementation.h
ResourceImplementationFile.cpp
ResourceImplementationFile.h
SecretString.cpp
SecretString.h
SessionManagement.cpp
SessionManagement.h
SharedCircularQueue.h
Socket.cpp
Socket.h
SocketAddress.h
SOCKSProxyClient.cpp
SOCKSProxyClient.h
StandardPaths.cpp
StandardPaths.h
System.cpp
System.h
SystemServerTakeover.cpp
SystemServerTakeover.h
TCPServer.cpp
TCPServer.h
ThreadedPromise.h
ThreadEventQueue.cpp
ThreadEventQueue.h
Timer.cpp
Timer.h
UDPServer.cpp
UDPServer.h
UmaskScope.h
Version.cpp
Version.h