#!/bin/bash
# -*- bash -*-
-# Copyright (C) 2021 Jacob Bachmeyer
+# Copyright (C) 2021, 2022 Jacob Bachmeyer
#
# This file is part of a testsuite for the GNU FTP upload system.
#
;;
esac
done
-} <"$SigFile"
+}
# check that we were actually given a file to process
if [ x"$*" = x ]; then
# check that the file is readable and process it
SigFile="$1"
shift
-if [ -r "$SigFile" ] ; then
- process_sig_file "$@"
+if [ x"$SigFile" = x- ] ; then
+ # signed message arrives on stdin
+ process_sig_file
+elif [ -r "$SigFile" ] ; then
+ process_sig_file "$@" <"$SigFile"
else
log "can't" open '`'"$SigFile'"
log verify signatures failed: file open error