Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- 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); } -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html