Merge pull request #226 from giuseppe/fix-segfault

main: fix segfault if no mountpoint specified
This commit is contained in:
Giuseppe Scrivano 2020-07-20 08:46:12 +02:00 committed by GitHub
commit 800011be8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
main.c
View File

@ -5151,6 +5151,9 @@ main (int argc, char *argv[])
if (lo.redirect_dir && strcmp (lo.redirect_dir, "off"))
error (EXIT_FAILURE, 0, "fuse-overlayfs only supports redirect_dir=off");
if (lo.mountpoint == NULL)
error (EXIT_FAILURE, 0, "no mountpoint specified");
if (lo.upperdir != NULL)
{
cleanup_free char *full_path = NULL;