summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2020-02-03 12:37:15 +0000
committerDavid Mitchell <davem@iabyn.com>2020-02-03 12:37:15 +0000
commit7b1d420218b4e0831d28cfae95511e20ff8c0eb1 (patch)
treeae065a06b85160246f010d9b0e02602f1f8cc958 /pp.c
parent8cd4023b92c9f4adc9ce9789c8c8d95f71be7932 (diff)
downloadperl-7b1d420218b4e0831d28cfae95511e20ff8c0eb1.tar.gz
pp_crypt(): remove ancient glibc bug workaround
GH #16552 In 2003 a fix was added to workaround a bug in glibc's crypt_r() implementation (which involved tweaking a private undocumented field within the crypt_data struct). This bug has long since been fixed, but the workaround remained. This commit finally removes that workaround. See also v5.27.11-33-ge9c9cf5759.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/pp.c b/pp.c
index b86593eedb..7a75825ccb 100644
--- a/pp.c
+++ b/pp.c
@@ -3668,12 +3668,6 @@ PP(pp_crypt)
#if defined(__GLIBC__) || defined(__EMX__)
if (PL_reentrant_buffer->_crypt_struct_buffer) {
PL_reentrant_buffer->_crypt_struct_buffer->initialized = 0;
-#if (defined(__GLIBC__) && __GLIBC__ == 2) && \
- (defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 2 && __GLIBC_MINOR__ < 4)
- /* work around glibc-2.2.5 bug, has been fixed at some
- * time in glibc-2.3.X */
- PL_reentrant_buffer->_crypt_struct_buffer->current_saltbits = 0;
-#endif
}
#endif
}