binfmt: ensure a file is ungegistered before registering
This fixes #328
This commit is contained in:
parent
039845b742
commit
eb61085951
@ -29,6 +29,9 @@ apply_file() {
|
|||||||
\;*) continue ;;
|
\;*) continue ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
local reg=${line#*:}
|
||||||
|
[ -e /proc/sys/fs/binfmt_misc/${reg%%:*} ] && echo -1 > /proc/sys/fs/binfmt_misc/${reg%%:*}
|
||||||
|
|
||||||
echo "${line}" > /proc/sys/fs/binfmt_misc/register
|
echo "${line}" > /proc/sys/fs/binfmt_misc/register
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ $rc -ne 0 ]; then
|
if [ $rc -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user