summaryrefslogtreecommitdiff
path: root/pm
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-01-26 06:50:13 -0600
commit328c2016b4adf0fc04de43f79c66c1477abdae3f (patch)
tree181c9859874fafb86ac56676742a35c42d2bb547 /pm
parent67ac2ed11b44df8f5405ee1c424f2073193aca5e (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.
Diffstat (limited to 'pm')
-rw-r--r--pm/functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/functions.in b/pm/functions.in
index 019e8d2..bd0705c 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##*,}"