summaryrefslogtreecommitdiff
path: root/logsrvd
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2021-11-10 13:31:42 -0700
committerTodd C. Miller <Todd.Miller@sudo.ws>2021-11-10 13:31:42 -0700
commitfd8e0866ca8d0a355e9ec2fdb26def643c2d9567 (patch)
tree5b3dd5e1b50363b06e29ef84bc22631bf0e5d709 /logsrvd
parentd267a43b476e13109372b515882aa8789f6d413e (diff)
downloadsudo-fd8e0866ca8d0a355e9ec2fdb26def643c2d9567.tar.gz
Add configure check for sha1sum and use "openssh dgst -sha1" if missing.
Only needed when building the seed corpus zip files.
Diffstat (limited to 'logsrvd')
-rw-r--r--logsrvd/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/logsrvd/Makefile.in b/logsrvd/Makefile.in
index 171da3341..e9ac8cbd6 100644
--- a/logsrvd/Makefile.in
+++ b/logsrvd/Makefile.in
@@ -35,6 +35,7 @@ cross_compiling = @CROSS_COMPILING@
# Compiler & tools to use
CC = @CC@
LIBTOOL = @LIBTOOL@
+SHA1SUM = @SHA1SUM@
SED = @SED@
# Our install program supports extra flags...
@@ -174,7 +175,7 @@ fuzz_logsrvd_conf_seed_corpus.zip:
tdir=fuzz_logsrvd_conf.$$$$; \
mkdir $$tdir; \
for f in $(FUZZ_LOGSRVD_CONF_CORPUS); do \
- cp $$f $$tdir/`sha1sum $$f | cut -d' ' -f1`; \
+ cp $$f $$tdir/`$(SHA1SUM) $$f | $(SED) -e 's/^.*= *//' -e 's/ .*//'`; \
done; \
zip -j $@ $$tdir/*; \
rm -rf $$tdir