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/cmd') diff --git a/src/cmd/process-incoming.sh b/src/cmd/process-incoming.sh index 59e7818..4a5e7d9 100644 --- a/src/cmd/process-incoming.sh +++ b/src/cmd/process-incoming.sh @@ -37,9 +37,9 @@ cmd_process_incoming_main() if [ ! -f "${file}" ]; then continue fi - rm -f "${file}" + rm -f -- "${file}" done - rm -f "${changes}" + rm -f -- "${changes}" done fini -- cgit v0.9.1