makefs: Ignore the "tags" keyword in mtree manifests
An install using -DNO_ROOT emits mtree entries containing tags used by pkgbase. makefs(8) can safely ignore them, so do that rather than emitting a warning for each entry. Reviewed by: brooks, imp MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29384
This commit is contained in:
parent
320bed3c00
commit
ed42b22abc
@ -629,7 +629,13 @@ read_mtree_keywords(FILE *fp, fsnode *node)
|
||||
error = ENOSYS;
|
||||
break;
|
||||
case 't':
|
||||
if (strcmp(keyword, "time") == 0) {
|
||||
if (strcmp(keyword, "tags") == 0) {
|
||||
if (value == NULL) {
|
||||
error = ENOATTR;
|
||||
break;
|
||||
}
|
||||
/* Ignore. */
|
||||
} else if (strcmp(keyword, "time") == 0) {
|
||||
if (value == NULL) {
|
||||
error = ENOATTR;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user