Module Name: src
Committed By: martin
Date: Wed Jul 5 12:07:21 UTC 2023
Modified Files:
src/etc: security
Log Message:
Fix sysctl invocation testing for missing entropy.
To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 src/etc/security
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/security
diff -u src/etc/security:1.130 src/etc/security:1.131
--- src/etc/security:1.130 Fri Jun 30 21:42:29 2023
+++ src/etc/security Wed Jul 5 12:07:21 2023
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: security,v 1.130 2023/06/30 21:42:29 riastradh Exp $
+# $NetBSD: security,v 1.131 2023/07/05 12:07:21 martin Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -195,7 +195,7 @@ done | mtree -CM -k all > $SPECIALSPEC |
# Check for enough entropy.
#
if checkyesno check_entropy; then
- if [ "$(sysctl -nq kern.entropy.needed)" != 0 ]; then
+ if [ "$(sysctl -n kern.entropy.needed)" != 0 ]; then
printf '\n'
printf 'Entropy:\n'
printf 'System may need more entropy for cryptography.\n'