summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-05-02 16:38:51 +0200
committerMarc Vertes <mvertes@free.fr>2025-05-02 16:38:51 +0200
commit88ecd274e9a9853debe60fa5fe8dfd9d69234051 (patch)
tree8c0e0a8510851d51f28d41b66fea4de6afb7da84 /bin
parentfcfd7f4d544206c5a64d1e57b3933e7782843ed7 (diff)
fix crypt
Diffstat (limited to 'bin')
-rwxr-xr-xbin/crypt3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/crypt b/bin/crypt
index 64afc42..fbd8817 100755
--- a/bin/crypt
+++ b/bin/crypt
@@ -40,6 +40,5 @@ if [ "${0##*/}" = "crypt" ]; then
esac
done
shift $((OPTIND - 1))
- [ "$1" ] && exec 0<"$1"
- "$cmd"
+ cat "${1:-/dev/stdin}" | "$cmd" # XXX: despite being redundant, cat is required on some systems.
fi