Merge pull request #95 from cgwalters/empty-passwd-einval
passwd: Avoid EINVAL if previous passwd data is empty somehow
This commit is contained in:
commit
3ea0e3fc16
@ -894,6 +894,9 @@ concat_passwd_file (GFile *yumroot,
|
||||
&contents, &len, NULL, error))
|
||||
goto out;
|
||||
|
||||
if (len == 0)
|
||||
continue;
|
||||
|
||||
if (src_stream) (void) fclose (src_stream);
|
||||
src_stream = fmemopen (contents, len, "r");
|
||||
if (!src_stream)
|
||||
|
Loading…
Reference in New Issue
Block a user