diff options
author | Luke Wilde <lukew@serenityos.org> | 2022-07-10 21:36:36 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-10 23:31:48 +0200 |
commit | 36c3a0fac28dd65ef91ac8604abdc10f5fd0bdba (patch) | |
tree | ef16afe8f427a047099c743bcc77b4f04649bbdc | |
parent | 18d25124bfeda7a64f5c32812401c4b126766b15 (diff) | |
download | serenity-36c3a0fac28dd65ef91ac8604abdc10f5fd0bdba.zip |
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.
-rwxr-xr-x | Meta/build-root-filesystem.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index f03dd97fda..851d7ae72e 100755 --- a/Meta/build-root-filesystem.sh +++ b/Meta/build-root-filesystem.sh @@ -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" |