Lines 733-739
read_mtree_keywords(FILE *fp, fsnode *node)
Link Here
|
733 |
type = S_IFREG; |
733 |
type = S_IFREG; |
734 |
} else if (node->type != 0) { |
734 |
} else if (node->type != 0) { |
735 |
type = node->type; |
735 |
type = node->type; |
736 |
if (type == S_IFREG) { |
736 |
if (type == S_IFLNK && node->symlink == NULL) { |
|
|
737 |
mtree_error("%s: link type require the link keyword", node->name); |
738 |
return (0); |
739 |
} else if (type == S_IFREG) { |
737 |
/* the named path is the default contents */ |
740 |
/* the named path is the default contents */ |
738 |
node->contents = mtree_file_path(node); |
741 |
node->contents = mtree_file_path(node); |
739 |
} |
742 |
} |