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:
parent
ead9c36c92
commit
b38f8902d2
Notes:
sideshowbarker
2024-07-17 22:41:20 +09:00
Author: https://github.com/awesomekling
Commit: b38f8902d2
4 changed files with 25 additions and 61 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue