1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibCore+passwd+usermod: Make Core::Account::sync() return ErrorOr<void>

This commit is contained in:
Andreas Kling 2021-12-16 21:41:57 +01:00
parent ead9c36c92
commit b38f8902d2
Notes: sideshowbarker 2024-07-17 22:41:20 +09:00
4 changed files with 25 additions and 61 deletions

View file

@ -134,10 +134,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
TRY(Core::System::pledge("stdio wpath rpath cpath fattr"));
if (!target_account.sync()) {
perror("Core::Account::Sync");
return 1;
}
TRY(target_account.sync());
return 0;
}