summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2015-01-22 20:34:42 +0100
committerTimo Weingärtner <timo@tiwe.de>2015-01-22 20:34:42 +0100
commit0e971e742afad1669dbae0d75eead51e76af1899 (patch)
treecba9b2548802a12dc0bb8523a12a6f4d05b6b142
parent4a043c6de09658a97dff8ec2d7b311c4f4bce3af (diff)
downloadopenssh-known-hosts-0e971e742afad1669dbae0d75eead51e76af1899.tar.gz
plugins/curl: fix silent wrong output on HTTP 404
-rwxr-xr-xplugins/curl4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/curl b/plugins/curl
index 93be854..9c47601 100755
--- a/plugins/curl
+++ b/plugins/curl
@@ -12,12 +12,12 @@
set -e
if [ "${SIGURL}" ]; then
- curl -Rz "./current" -m 300 ${CURL_OPTIONS} -o new.sig "${SIGURL}" -o new "${URL}"
+ curl -fRz "./current" -m 300 ${CURL_OPTIONS} -o new.sig "${SIGURL}" -o new "${URL}"
[ -e new ] || exit 0
gpgv --keyring "${KEYRING}" --status-fd 2 new.sig || exit 1
# return 1 because it's not clear what other codes may used
else
- curl -Rz "./current" -m 300 ${CURL_OPTIONS} -o new "${URL}"
+ curl -fRz "./current" -m 300 ${CURL_OPTIONS} -o new "${URL}"
fi
# vim:set ft=sh: