Message ID | 7f95001f-8fb9-3965-0b40-05c434f39607@redhat.com (mailing list archive) |
---|---|
State | Deferred, archived |
Headers | show |
On Fri, Jun 15, 2018 at 05:39:41PM -0500, Eric Sandeen wrote: > Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Luis R. Rodriguez <mcgrof@kernel.org> Luis -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/mkfs/config.c b/mkfs/config.c index 3a389ad..9954691 100644 --- a/mkfs/config.c +++ b/mkfs/config.c @@ -573,7 +573,8 @@ open_config_file( goto out; } /* Get absolute path to this file */ - realpath(config_file, *fpath); + if (!realpath(config_file, *fpath)) + goto out; fd = openat(AT_FDCWD, config_file, O_NOFOLLOW, O_RDONLY); }
Signed-off-by: Eric Sandeen <sandeen@redhat.com> --- -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html