summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2009-01-26 06:50:13 -0600
committerVictor Lowther <victor.lowther@gmail.com>2009-02-08 17:28:12 -0600
commit65193cff7dc2ed0157eb438aa198f8b506577086 (patch)
treee4acc9b11c6f5243f0d0b9e0e89335983b8b0213
parent0182a25c87361baf1c4728340b5361cb447febcc (diff)
Resolve fd.o bug# 19658
modunload was not unloading dependent modules correctly due to incorrect string handling. Fix provided by zak.kipling@cantab.net.
-rw-r--r--pm/functions.in2
1 files changed, 1 insertions, 1 deletions
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##*,}"