libxcrypt/libxcrypt-4.0.0_gcc8_fix_test.patch
2018-01-31 01:26:09 +01:00

23 lines
770 B
Diff

From db1a30dea83a74a0314fddffc35e165b1ebb3158 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Wed, 31 Jan 2018 00:43:49 +0100
Subject: [PATCH] test-crypt-bcrypt: Fix test with GCC8
---
test-crypt-bcrypt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test-crypt-bcrypt.c b/test-crypt-bcrypt.c
index fffee97..02a2f07 100644
--- a/test-crypt-bcrypt.c
+++ b/test-crypt-bcrypt.c
@@ -177,7 +177,7 @@ main (void)
const char *key = tests[i][1];
const char *setting = tests[i][2];
const char *p;
- int ok = !setting || strlen (hash) >= 30;
+ int ok = !setting || hash[0] != '*';
char s_buf[30];
char o_buf[sizeof (struct crypt_data)];
int errnm, match;