mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 18:05:58 -04:00
Merge pull request #226 from giuseppe/fix-segfault
main: fix segfault if no mountpoint specified
This commit is contained in:
commit
800011be8f
3
main.c
3
main.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user