diff --git a/src/rpmostree-passwd-util.c b/src/rpmostree-passwd-util.c index 6a6685b1..083c56cc 100644 --- a/src/rpmostree-passwd-util.c +++ b/src/rpmostree-passwd-util.c @@ -893,6 +893,9 @@ concat_passwd_file (GFile *yumroot, if (!g_file_load_contents (source, cancellable, &contents, &len, NULL, error)) goto out; + + if (len == 0) + continue; if (src_stream) (void) fclose (src_stream); src_stream = fmemopen (contents, len, "r");