mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 18:05:58 -04:00
main: fix segfault if no mountpoint specified
Closes: https://github.com/containers/fuse-overlayfs/issues/225 Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
This commit is contained in:
parent
fb8b3e03ca
commit
8f666d4820
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