1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Spelling and grammar improvements

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman
2022-07-01 11:31:05 +01:00
parent 168bcd684b
commit 2958bb3761

View File

@ -1641,7 +1641,7 @@ cleanup:
} }
else else
{ {
/* determinate if the file entry could be a link, using lstat(2) /* Determine if the file entry could be a link. Using lstat(2)
* is safer than just stat(2), otherwise a broken link will * is safer than just stat(2), otherwise a broken link will
* give us a false positive. */ * give us a false positive. */
if( lstat( entry_name, &sb ) == -1 ) if( lstat( entry_name, &sb ) == -1 )
@ -1650,13 +1650,12 @@ cleanup:
goto cleanup; goto cleanup;
} }
/* if the file is a symbolic link, we need to validate the real /* If the file is a symbolic link, we need to validate the real
* information using stat(2). */ * information using stat(2). */
if( S_ISLNK( sb.st_mode ) ) if( S_ISLNK( sb.st_mode ) )
{ {
/* if stat(2) fails it could be a broken link or a generic /* If stat(2) fails it could be a broken link or a generic
* error, if the link is broken, just report it as a * error. If the link is broken, ignore it, otherwise
* certificate that could not be processed, otherwise
* just set a MBEDTLS_ERR_X509_FILE_IO_ERROR. */ * just set a MBEDTLS_ERR_X509_FILE_IO_ERROR. */
if( stat( entry_name, &sb ) == -1 ) if( stat( entry_name, &sb ) == -1 )
{ {