From 049f1d1434c5e3dc5f1c6a0d57711b33911c3b12 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 14 Apr 2019 01:36:13 -0400 Subject: Protect against cmd operands beginning with "-" --- (limited to 'src/include.sh') diff --git a/src/include.sh b/src/include.sh index 72d14f7..71e82ac 100644 --- a/src/include.sh +++ b/src/include.sh @@ -166,9 +166,9 @@ include_changes() "${size}" "${sect}" "${pkg}" pool_file="pool/$(hash_name "${source}")/${source}" pool_file="${pool_file}/${pkg}_${binver}_${arch}_${plat}.opk" - file="$(dirname "${changes}")/${file}" + file="$(dirname -- "${changes}")/${file}" files="${files} ${file}" - cp -p "${file}" "${base_dir}/${pool_file}" + cp -p -- "${file}" "${base_dir}/${pool_file}" feed_add_package "${chan}" "${dist}" "${arch}" "${plat}" \ "${sect}" "${pkg}" "${size}" "${pool_file}" done <<-EOF -- cgit v0.9.1