From 65193cff7dc2ed0157eb438aa198f8b506577086 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Mon, 26 Jan 2009 06:50:13 -0600 Subject: Resolve fd.o bug# 19658 modunload was not unloading dependent modules correctly due to incorrect string handling. Fix provided by zak.kipling@cantab.net. --- pm/functions.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm/functions.in b/pm/functions.in index edee445..970b3b5 100644 --- a/pm/functions.in +++ b/pm/functions.in @@ -92,7 +92,7 @@ modunload() RET=$? else # modules depend on this one. try to remove them first. - MODS="${USED%%*,}" + MODS=",${USED%,}" while [ -n "${MODS}" ]; do # try to unload the last one first MOD="${MODS##*,}" -- cgit v1.2.1