Skip to content
Snippets Groups Projects
Commit 7b9568a6 authored by Simon McVittie's avatar Simon McVittie
Browse files

mtree: Accept content= as a synonym for contents=


libarchive allows both, although FreeBSD and NetBSD mtree do not.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent a5c4b4be
No related branches found
No related tags found
1 merge request!320Improve compatibility with other mtree implementations
...@@ -153,7 +153,8 @@ pv_mtree_entry_parse (const char *line, ...@@ -153,7 +153,8 @@ pv_mtree_entry_parse (const char *line,
continue; continue;
} }
if (g_str_has_prefix (tokens[i], "contents=")) if (g_str_has_prefix (tokens[i], "contents=")
|| g_str_has_prefix (tokens[i], "content="))
{ {
entry->contents = g_strcompress (equals + 1); entry->contents = g_strcompress (equals + 1);
continue; continue;
......
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