diff options
author | Leah Rowe <leah@libreboot.org> | 2025-08-31 20:03:34 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-08-31 20:25:00 +0100 |
commit | bbce74d78af9ef871bff52f44638eda57a26973e (patch) | |
tree | 138a838c1e97590d29f688979c42436b1ccda3d2 /config/submodule/grub | |
parent | ad58364e189d90284e8bc888ec1bf1b555768c47 (diff) |
init.sh: MUCH safer TMPDIR handling
we previously checked whether xbmk was running a child
instance, based on the initialisation of TMPDIR, but
this relied on unreliable string substitutions, which
could not be made inherently reliable. there were also
no checks on whether the given TMPDIR, even if correct,
was a directory or whether it was a symlink; there were
also no checks on whether it changed.
now with this change, child instances are detected by
the presence of the lock file. the parent instance
writes the generated TMPDIR location in that file, and
this is checked again in the child instance, to ensure
that the TMPDIR didn't change; it also errors out if
the TMPDIR doesn't exist or if it is a symlink.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/submodule/grub')
0 files changed, 0 insertions, 0 deletions