FreeBSD Bugzilla – Attachment 208226 Details for
Bug 241178
makefs segfault when manifest include symlinks without the link keyword
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
link type require the link keyword
makefs.patch (text/plain), 594 bytes, created by
Stéphane Rochoy
on 2019-10-10 12:41:21 UTC
(
hide
)
Description:
link type require the link keyword
Filename:
MIME Type:
Creator:
Stéphane Rochoy
Created:
2019-10-10 12:41:21 UTC
Size:
594 bytes
patch
obsolete
>diff --git a/usr.sbin/makefs/mtree.c b/usr.sbin/makefs/mtree.c >index 80b55a3c42b..df2e76c6981 100644 >--- a/usr.sbin/makefs/mtree.c >+++ b/usr.sbin/makefs/mtree.c >@@ -733,7 +733,10 @@ read_mtree_keywords(FILE *fp, fsnode *node) > type = S_IFREG; > } else if (node->type != 0) { > type = node->type; >- if (type == S_IFREG) { >+ if (type == S_IFLNK && node->symlink == NULL) { >+ mtree_error("%s: link type require the link keyword", node->name); >+ return (0); >+ } else if (type == S_IFREG) { > /* the named path is the default contents */ > node->contents = mtree_file_path(node); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 241178
: 208226