ladybird/Libraries/LibCore
Emanuele Torre 91222a67c8 LibCore: get_password() now removes the trailing '\n' read by getline()
This avoids unintentionally adding a newline character at the end of
user passwords when they are set using passwd(1).

I also fixed these two issues:

- The return value of getline() was being saved in an `int` variable
instead of in a `ssize_t` variable; I replaced the `int` keyword with
`auto` to fix this issue.

- Prior to this patch, get_password() could potentially return
tcsetattr()'s errno instead of getline()'s errno in case of an error.
We now make sure it always returns the right errno in case of an error.
2021-01-10 16:40:05 +01:00
..
Account.cpp LibCore+passwd+su+Base: Add /etc/shadow to hide hashes from users :^) 2021-01-09 19:41:12 +01:00
Account.h LibCore+passwd+su+Base: Add /etc/shadow to hide hashes from users :^) 2021-01-09 19:41:12 +01:00
ArgsParser.cpp LibCore: Offer to display a general description 2020-12-06 00:06:53 +01:00
ArgsParser.h LibCore: Offer to display a general description 2020-12-06 00:06:53 +01:00
CMakeLists.txt LibCore: Add DirectoryWatcher 2020-12-14 23:05:53 +01:00
Command.cpp Everywhere: Add missing <AK/ByteBuffer.h> includes 2020-11-15 13:11:21 +01:00
Command.h LibCore: Add command() utility functions 2020-09-15 21:43:29 +02:00
ConfigFile.cpp LibCore: Make IODevice::read_line() return a String 2020-12-13 11:54:11 +01:00
ConfigFile.h LibCore: Add ConfigFile::get_for_lib() 2020-08-18 12:07:32 +02:00
DateTime.cpp LibCore: Use new format functions in some places. 2020-10-17 23:20:31 +02:00
DateTime.h LibCore: Comment that DateTime is in local time. 2020-08-20 20:53:43 +02:00
DirectoryWatcher.cpp LibCore: Add DirectoryWatcher 2020-12-14 23:05:53 +01:00
DirectoryWatcher.h LibCore: Add DirectoryWatcher 2020-12-14 23:05:53 +01:00
DirIterator.cpp LibCore: Use new format functions in some places. 2020-10-17 23:20:31 +02:00
DirIterator.h LibCore: Add find_executable_in_path. 2020-09-16 19:39:17 +02:00
ElapsedTimer.cpp Kernel: Improve time keeping and dramatically reduce interrupt load 2020-12-21 18:26:12 +01:00
ElapsedTimer.h Kernel: Improve time keeping and dramatically reduce interrupt load 2020-12-21 18:26:12 +01:00
Event.cpp AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
Event.h AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
EventLoop.cpp LibCore: Don't try to unlink stale sockets in /tmp/rpc/ 2021-01-10 11:25:59 +01:00
EventLoop.h LibCore: Harden signal handling code to be called in global destrcutors 2021-01-09 21:12:31 +01:00
File.cpp LibCore: Rename identifiers that can clash with libc macros (#4127) 2020-12-22 23:37:11 +01:00
File.h LibCore: Rename identifiers that can clash with libc macros (#4127) 2020-12-22 23:37:11 +01:00
FileStream.h LibCore: Rename identifiers that can clash with libc macros (#4127) 2020-12-22 23:37:11 +01:00
Forward.h LibCore: Fix typo in Forward.h 2020-06-11 22:44:54 +02:00
GetPassword.cpp LibCore: get_password() now removes the trailing '\n' read by getline() 2021-01-10 16:40:05 +01:00
GetPassword.h LibCore: add get_password(). 2020-07-28 17:07:22 +02:00
Gzip.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
Gzip.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
IODevice.cpp LibCore: Make IODevice::read_line() return a String 2020-12-13 11:54:11 +01:00
IODevice.h LibCore: Make IODevice::read_line() return a String 2020-12-13 11:54:11 +01:00
IODeviceStreamReader.h LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
LocalServer.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
LocalServer.h LibCore: Remove a bunch of unnecessary forward declarations 2020-02-15 00:32:33 +01:00
LocalSocket.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
LocalSocket.h LibCore: Add API for taking over an accepted socket from SystemServer 2020-06-21 21:54:30 +02:00
MimeData.cpp LibCore: Make `guess_mime_type_based_on_filename()' recognise CSV files 2020-11-24 21:38:13 +01:00
MimeData.h LibGUI+WindowServer: Make DragOperation hold a MimeData instance 2020-11-08 21:46:13 +01:00
NetworkJob.cpp ProtocolServer: Stream the downloaded data if possible 2020-12-30 13:31:55 +01:00
NetworkJob.h ProtocolServer: Stream the downloaded data if possible 2020-12-30 13:31:55 +01:00
NetworkResponse.cpp ProtocolServer: Stream the downloaded data if possible 2020-12-30 13:31:55 +01:00
NetworkResponse.h ProtocolServer: Stream the downloaded data if possible 2020-12-30 13:31:55 +01:00
Notifier.cpp LibCore: Add Notifier::close 2020-09-16 17:50:43 +02:00
Notifier.h LibCore: Add Notifier::close 2020-09-16 17:50:43 +02:00
Object.cpp Everywhere: Convert a bunch of dbgprintf() to dbgln() 2021-01-10 10:02:20 +01:00
Object.h AK: Add Formatter<FormatString> as helper class. 2021-01-09 21:11:09 +01:00
ProcessStatisticsReader.cpp LibCore: Allow caching and reusing the ProcFS file descriptors 2021-01-03 22:12:19 +01:00
ProcessStatisticsReader.h LibCore: Allow caching and reusing the ProcFS file descriptors 2021-01-03 22:12:19 +01:00
Property.cpp LibCore: Make Core::Object properties more dynamic 2020-09-15 21:46:26 +02:00
Property.h LibCore: Add a way to check if a property is readonly 2021-01-03 10:47:29 +01:00
puff.cpp LibCore: Rename puff.c => puff.cpp 2020-07-29 14:41:57 +02:00
puff.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
Socket.cpp LibCore: Stop logging that a Core::Socket has disconnected in receive() 2020-12-23 15:45:59 +01:00
Socket.h LibCore: Change the signature of Socket::send() to use Span. 2020-07-27 19:58:09 +02:00
SocketAddress.cpp LibCore: Move LogStream::operator<< overloads into cpp files 2020-02-15 00:58:52 +01:00
SocketAddress.h Everywhere: Port to String::copy_characters_to_buffer() 2020-08-30 17:35:27 +02:00
StandardPaths.cpp LibCore+Base: Move user-specific config files to $HOME/.config 2020-08-05 17:40:47 +02:00
StandardPaths.h LibCore+Base: Move user-specific config files to $HOME/.config 2020-08-05 17:40:47 +02:00
SyscallUtils.h LibCore: Put safe_syscall() debug spam behind #ifdef 2020-06-22 21:19:10 +02:00
TCPServer.cpp LibCore: Make TCPServer::listen() report failure instead of asserting 2020-09-28 22:14:23 +02:00
TCPServer.h LibCore: Remove a bunch of unnecessary forward declarations 2020-02-15 00:32:33 +01:00
TCPSocket.cpp Build: Make Lagom build under macOS (#2341) 2020-05-23 15:31:30 +02:00
TCPSocket.h LibCore: Remove a bunch of unnecessary forward declarations 2020-02-15 00:32:33 +01:00
Timer.cpp LibCore: Add Timer::restart() convenience API 2020-06-11 22:35:37 +02:00
Timer.h LibCore: Make Core::Timer::create_single_shot() create a stopped timer 2020-12-28 21:28:40 +01:00
UDPServer.cpp LibCore: UDPServer::bind: Replace bind failure assert() with perror() 2020-12-18 19:20:30 +01:00
UDPServer.h LibCore: Fix UDPServer up to properly receive data 2020-04-04 12:25:33 +02:00
UDPSocket.cpp LibCore: remove redundant UDPSocket constructor 2020-08-10 20:03:18 +02:00
UDPSocket.h LibCore: remove redundant UDPSocket constructor 2020-08-10 20:03:18 +02:00