1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 09:57:35 +00:00
serenity/Userland/Libraries/LibCore
brapru 3cf835af6d LibCore: Do not write disabled spwd values in generate_shadow_file
When LibC/shadow.cpp parses shadow entries in getspent, it sets the
spwd member value to disabled (-1) if the value is empty. When
Core::Account::sync calls getspent to generate a new shadow file, it
would recieve the -1 values and write them in the shadow file. This
would cause the /etc/shadow file to be cluttered with disabled values
after any password change.

This patch checks if the spwd member value is disabled, and prints the
appropriate value to the shadow file.
2021-05-29 18:23:10 +01:00
..
Account.cpp LibCore: Do not write disabled spwd values in generate_shadow_file 2021-05-29 18:23:10 +01:00
Account.h LibCore: Fix building the library on macOS 2021-05-01 15:56:16 +02:00
AnonymousBuffer.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
AnonymousBuffer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ArgsParser.cpp LibCore: Use Vector instead of VLA in ArgsParser::parse() 2021-05-16 21:58:14 +01:00
ArgsParser.h LibCore: Support Vector<String> positional arguments 2021-04-29 11:10:06 +02:00
CMakeLists.txt AK+LibCore: Remove empty files 2021-03-12 17:38:17 +01:00
Command.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
Command.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ConfigFile.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
ConfigFile.h Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
DateTime.cpp LibCore: Convert StringBuilder::appendf() => AK::Format 2021-05-07 21:12:08 +02:00
DateTime.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DirIterator.cpp LibCore: Expose DirIterator's underlying file descriptor 2021-05-14 23:32:10 +02:00
DirIterator.h LibCore: Expose DirIterator's underlying file descriptor 2021-05-14 23:32:10 +02:00
ElapsedTimer.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ElapsedTimer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Event.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Event.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EventLoop.cpp Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
EventLoop.h LibCore: Make all processes opt out of InspectorServer by default 2021-05-22 23:30:40 +02:00
File.cpp LibCore: Open files with O_CLOEXEC by default 2021-05-17 13:32:19 +02:00
File.h LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
FileStream.h LibCore: Add a standard error stream getter 2021-05-26 15:34:13 +04:30
FileWatcher.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
FileWatcher.h Userland+LibCore: Update FileWatcher + its users for InodeWatcher 2.0 2021-05-12 22:38:20 +02:00
Forward.h LibGUI: Move widget registration to LibCore 2021-05-06 08:50:39 +02:00
GetPassword.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
GetPassword.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
IODevice.cpp LibCore: Let IODevice::can_read_line() buffer until \n or EOF 2021-05-20 23:53:06 +02:00
IODevice.h LibCore: Open files with O_CLOEXEC by default 2021-05-17 13:32:19 +02:00
IODeviceStreamReader.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LocalServer.cpp LibCore: Close accepted sockets on exec() and make them non-blocking 2021-05-17 13:32:19 +02:00
LocalServer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LocalSocket.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
LocalSocket.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MimeData.cpp LibCore+Userland: Add 13 more detectable file types 2021-05-24 18:55:56 +01:00
MimeData.h LibCore: Implement basic mime type guessing based on binary patterns 2021-05-07 11:46:53 +01:00
NetworkJob.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
NetworkJob.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
NetworkResponse.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
NetworkResponse.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Notifier.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Notifier.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Object.cpp LibCore+Inspector: Reverse the direction of Inspector connections 2021-05-13 23:28:40 +02:00
Object.h LibGfx: Add missing TextAlignment::BottomLeft 2021-05-21 08:04:31 +02:00
ProcessStatisticsReader.cpp LibCore: Make ProcessStatisticsReader return results in a Vector 2021-05-23 11:10:15 +02:00
ProcessStatisticsReader.h LibCore: Make ProcessStatisticsReader return results in a Vector 2021-05-23 11:10:15 +02:00
Property.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Property.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Socket.cpp LibCore: Handle partial writes in Socket::send() 2021-05-25 22:20:37 +02:00
Socket.h LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
SocketAddress.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StandardPaths.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StandardPaths.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TCPServer.cpp LibCore: Close accepted sockets on exec() and make them non-blocking 2021-05-17 13:32:19 +02:00
TCPServer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TCPSocket.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
TCPSocket.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Timer.cpp LibCore: Add unit to Core::Timer interval arguments 2021-05-12 22:38:20 +02:00
Timer.h LibCore: Add unit to Core::Timer interval arguments 2021-05-12 22:38:20 +02:00
UDPServer.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
UDPServer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
UDPSocket.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
UDPSocket.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00