firejail: Fix double-dash usage on non-POSIX shells

This commit is contained in:
Jonas Heinrich 2023-02-17 12:09:11 +01:00 committed by Yt
parent d71d42707e
commit 03ee925c05

View File

@ -47,6 +47,12 @@ stdenv.mkDerivation rec {
# Fix the path to 'xdg-dbus-proxy' hardcoded in the 'common.h' file
substituteInPlace src/include/common.h \
--replace '/usr/bin/xdg-dbus-proxy' '${xdg-dbus-proxy}/bin/xdg-dbus-proxy'
# Workaround for regression introduced in 0.9.72 preventing usage of
# end-of-options indicator "--"
# See https://github.com/netblue30/firejail/issues/5659
substituteInPlace src/firejail/sandbox.c \
--replace " && !arg_doubledash" ""
'';
preConfigure = ''