From 5e1062cf29c0b555bf5e5038f1a377c3ee7677ab Mon Sep 17 00:00:00 2001 From: Jessica Yu Date: Thu, 10 Jul 2014 22:15:12 -0700 Subject: [PATCH] kpatch: pass basename of argument to unload_module --- kpatch/kpatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch/kpatch b/kpatch/kpatch index 2c1710f..3785df3 100755 --- a/kpatch/kpatch +++ b/kpatch/kpatch @@ -165,7 +165,7 @@ case "$1" in "unload") [[ "$#" -ne 2 ]] && usage [[ $2 =~ ^- ]] && usage - unload_module "$2" || die "failed to unload module $2" + unload_module "$(basename $2)" || die "failed to unload module $2" ;; "install")