diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-14 01:36:13 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-14 01:36:13 (EDT) |
commit | 049f1d1434c5e3dc5f1c6a0d57711b33911c3b12 (patch) | |
tree | 3a7cd9ab47da1a93efc2b4a37d6064ef3cd8608f /src/locale.sh | |
parent | 38c211c927c942d30946dfc7caaa5bb6535ea66a (diff) |
Protect against cmd operands beginning with "-"
Diffstat (limited to 'src/locale.sh')
-rw-r--r-- | src/locale.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale.sh b/src/locale.sh index 8a72926..63a38e9 100644 --- a/src/locale.sh +++ b/src/locale.sh @@ -38,7 +38,7 @@ _try_load_locale() # informative error message before aborting, we need this # eval/cat command. This is more resilient against race # conditions than `[ -f "${ms}" ]` is. - eval "$(cat "${ms}" 2>/dev/null)" || continue + eval "$(cat -- "${ms}" 2>/dev/null)" || continue return 0 done |