From 3f804224f424d859cefc9722fc2a52ac7483f3fb Mon Sep 17 00:00:00 2001 From: Isaac Aymerich Date: Wed, 12 Oct 2022 13:07:48 +0200 Subject: [PATCH] rc: validate Daemon option is not set when mounting a volume via RC - fixes #6469 --- cmd/mountlib/rc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/mountlib/rc.go b/cmd/mountlib/rc.go index b675abda9..bde259c88 100644 --- a/cmd/mountlib/rc.go +++ b/cmd/mountlib/rc.go @@ -97,6 +97,10 @@ func mountRc(ctx context.Context, in rc.Params) (out rc.Params, err error) { return nil, err } + if mountOpt.Daemon { + return nil, errors.New("Daemon Option not supported over the API") + } + mountType, err := in.GetString("mountType") mountMu.Lock()