mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Meta: Make utmp start out as an empty object instead of empty string
The reason empty string was treated as JSON null was to paper over an
issue where UTMP would start out as the empty string and presumably
cause errors when trying to parse it as JSON. This was added in
commit a409b832
.
This changes that by making UTMP start out as an empty JSON object
instead of the empty string.
This commit is contained in:
parent
18d25124bf
commit
36c3a0fac2
Notes:
sideshowbarker
2024-07-17 10:10:18 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/36c3a0fac2 Pull-request: https://github.com/SerenityOS/serenity/pull/14549
@ -131,7 +131,7 @@ chmod 1777 mnt/tmp
|
||||
echo "done"
|
||||
|
||||
printf "creating utmp file... "
|
||||
touch mnt/var/run/utmp
|
||||
echo "{}" > mnt/var/run/utmp
|
||||
chown 0:$utmp_gid mnt/var/run/utmp
|
||||
chmod 664 mnt/var/run/utmp
|
||||
echo "done"
|
||||
|
Loading…
Reference in New Issue
Block a user