This commit is contained in:
Mars 2025-05-03 22:28:09 -04:00
parent e4cafe1960
commit 17e356513f
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895

View file

@ -1,23 +1,20 @@
#ifdef __serenity__
// clang-format off
#include <cerrno> // For errno
#include <cstring> // For strerror
#include <filesystem>
#include <format>
#include <fstream>
#include <format> // std::format
#include <fstream> // std::ifstream
#include <glaze/core/common.hpp> // glz::object
#include <glaze/core/context.hpp> // glz::error_ctx, glz::error_code
#include <glaze/core/meta.hpp> // glz::detail::Object
#include <glaze/json/read.hpp> // glz::read_json
#include <iostream>
#include <pwd.h> // For getpwuid(), struct passwd
#include <string>
#include <string_view>
#include <sys/statvfs.h>
#include <sys/types.h> // For uid_t
#include <sys/utsname.h>
#include <unistd.h>
#include <glaze/core/read.hpp> // glz::read
#include <iterator> // std::istreambuf_iterator
#include <pwd.h> // getpwuid, struct passwd
#include <string> // std::string (String)
#include <string_view> // std::string_view (StringView)
#include <sys/statvfs.h> // statvfs
#include <sys/types.h> // uid_t
#include <sys/utsname.h> // utsname, uname
#include <unistd.h> // getuid, gethostname
#include "src/util/defs.hpp"
#include "src/util/error.hpp"
@ -100,7 +97,6 @@ namespace os {
fn GetShell() -> Result<String, DracError> {
uid_t userId = getuid();
errno = 0;
struct passwd* pw = getpwuid(userId);
if (pw == nullptr)