Skip to content

Commit 93152b9

Browse files
committed
add usr/libexec/helper-scripts/wc-test.sh
1 parent f78bea5 commit 93152b9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

usr/libexec/helper-scripts/wc-test.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <[email protected]>
4+
## See the file COPYING for copying conditions.
5+
6+
if ! printf '%s\n' | wc -l >/dev/null ; then
7+
printf "\
8+
$0: ERROR: command 'wc' test failed! Do not ignore this!
9+
10+
'wc' can core dump. Example:
11+
zsh: illegal hardware instruction (core dumped) wc -l
12+
https://github.com/rspamd/rspamd/issues/5137" >&2
13+
exit 1
14+
fi

0 commit comments

Comments
 (0)