mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
bbce74d78a
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>