tools headers UAPI: Sync linux/prctl.h with the kernel sources
[linux-2.6-microblaze.git] / scripts / modules-check.sh
index 43de226..e063277 100755 (executable)
@@ -13,10 +13,10 @@ exit_code=0
 # Check uniqueness of module names
 check_same_name_modules()
 {
-       for m in $(sed 's:.*/::' $1 | sort | uniq -d)
+       for m in $(sed 's:.*/::' "$1" | sort | uniq -d)
        do
                echo "error: the following would cause module name conflict:" >&2
-               sed -n "/\/$m/s:^:  :p" modules.order >&2
+               sed -n "/\/$m/s:^:  :p" "$1" >&2
                exit_code=1
        done
 }