[Pm-utils] [PATCH 7/7] (pm-utils 1.2.4) Resolve fd.o bug# 19658
Victor Lowther
victor.lowther at gmail.com
Thu Jan 29 05:52:09 PST 2009
modunload was not unloading dependent modules correctly due to
incorrect string handling. Fix provided by zak.kipling at cantab.net.
---
pm/functions.in | 2 +-
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##*,}"
--
1.6.0.6
More information about the Pm-utils
mailing list