mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
LibCore: Use new format functions in some places.
This commit is contained in:
parent
43e37c7cde
commit
c9ca897a45
7 changed files with 63 additions and 61 deletions
|
@ -166,16 +166,16 @@ bool Account::sync()
|
|||
errno = 0;
|
||||
while ((p = getpwent())) {
|
||||
if (p->pw_uid == m_uid) {
|
||||
new_passwd_file.appendf("%s:%s:%u:%u:%s:%s:%s\n",
|
||||
m_username.characters(),
|
||||
m_password_hash.characters(),
|
||||
new_passwd_file.appendff("{}:{}:{}:{}:{}:{}:{}\n",
|
||||
m_username,
|
||||
m_password_hash,
|
||||
m_uid, m_gid,
|
||||
m_gecos.characters(),
|
||||
m_home_directory.characters(),
|
||||
m_shell.characters());
|
||||
m_gecos,
|
||||
m_home_directory,
|
||||
m_shell);
|
||||
|
||||
} else {
|
||||
new_passwd_file.appendf("%s:%s:%u:%u:%s:%s:%s\n",
|
||||
new_passwd_file.appendff("{}:{}:{}:{}:{}:{}:{}\n",
|
||||
p->pw_name, p->pw_passwd, p->pw_uid,
|
||||
p->pw_gid, p->pw_gecos, p->pw_dir,
|
||||
p->pw_shell);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue