mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 21:19:53 -05:00
ITS#4875 ignore zero-length st_size
This commit is contained in:
parent
4c940a6e0c
commit
b596ae0adf
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue