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 ;;
|
||||
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
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user