1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Merge pull request #14176 from NixOS/backport-14168-to-2.30-maintenance

[Backport 2.30-maintenance] libutil: Throw if `str("contents")` not found
This commit is contained in:
internal-nix-ci[bot] 2025-10-07 22:29:34 +00:00 committed by GitHub
commit 38927ae9c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -187,7 +187,9 @@ static void parse(FileSystemObjectSink & sink, Source & source, const CanonPath
tag = getString(); tag = getString();
} }
if (tag == "contents") if (tag != "contents")
throw badArchive("expected tag 'contents', got '%s'", tag);
parseContents(crf, source); parseContents(crf, source);
expectTag(")"); expectTag(")");