We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80d05c0 + 3353627 commit df100d9Copy full SHA for df100d9
testssl.sh
@@ -475,11 +475,15 @@ HAS_GNUDATE=false
475
HAS_FREEBSDDATE=false
476
HAS_OPENBSDDATE=false
477
if date -d @735275209 >/dev/null 2>&1; then
478
- if date -r @735275209 >/dev/null 2>&1; then
+ if date -r @735275209 >/dev/null 2>&1; then
479
+ # Ubuntu >= 25.10
480
+ HAS_GNUDATE=true
481
+ elif date -r 735275209 2>&1 | grep -q "No such file"; then
482
+ # e.g. Debian 24.04, Debian 11-13
483
484
+ elif date -r 735275209 >/dev/null 2>&1; then
485
# It can't do any conversion from a plain date output.
486
HAS_OPENBSDDATE=true
- else
- HAS_GNUDATE=true
487
fi
488
489
# FreeBSD and OS X date(1) accept "-f inputformat", so do newer OpenBSD versions >~ 6.6.
0 commit comments