mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#4875 ignore zero-length st_size
This commit is contained in:
parent
4c940a6e0c
commit
b596ae0adf
@ -44,7 +44,7 @@ lutil_get_filed_password(
|
||||
}
|
||||
|
||||
passwd->bv_val = NULL;
|
||||
passwd->bv_len = 4196;
|
||||
passwd->bv_len = 4096;
|
||||
|
||||
#ifdef HAVE_FSTAT
|
||||
{
|
||||
@ -56,7 +56,8 @@ lutil_get_filed_password(
|
||||
filename );
|
||||
}
|
||||
|
||||
passwd->bv_len = sb.st_size;
|
||||
if ( sb.st_size )
|
||||
passwd->bv_len = sb.st_size;
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_FSTAT */
|
||||
|
Loading…
Reference in New Issue
Block a user