Revert "Merge pull request #3012 from Patater/dev/jp-bennett/development-2.16"
This reverts commit 7550e857bf85bc169271b9edefb1e8ee04bc3042, reversing
changes made to d0c25753241b0ea2b120bfa506d558f76c8c1430.
stat() will never return S_IFLNK as the file type, as stat()
explicitly follows symlinks.
Fixes #3005.
diff --git a/ChangeLog b/ChangeLog
index a8f9a79..f6d3124 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,8 +16,6 @@
ARMmbed/mbed-crypto#352
Bugfix
- * Allow loading symlinked certificates. Fixes #3005. Reported and fixed
- by Jonathan Bennett <JBennett@incomsystems.biz> via #3008.
* Fix an unchecked call to mbedtls_md() in the x509write module.
= mbed TLS 2.16.4 branch released 2020-01-15
diff --git a/library/x509_crt.c b/library/x509_crt.c
index a4202be..9c2e365 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -1366,7 +1366,7 @@
goto cleanup;
}
- if( !( S_ISREG( sb.st_mode ) || S_ISLNK( sb.st_mode ) ) )
+ if( !S_ISREG( sb.st_mode ) )
continue;
// Ignore parse errors