Skip to content
Snippets Groups Projects
Commit b596ae0a authored by Howard Chu's avatar Howard Chu
Browse files

ITS#4875 ignore zero-length st_size

parent 4c940a6e
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment