From: Christian Brauner Date: Wed, 28 Apr 2021 09:26:59 +0000 (+0200) Subject: storage/dir: source can't be empty X-Git-Tag: lxc-5.0.0~188^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6234735b2850cf9209289514bb134f8ac55af78;p=thirdparty%2Flxc.git storage/dir: source can't be empty Signed-off-by: Christian Brauner --- diff --git a/src/lxc/storage/dir.c b/src/lxc/storage/dir.c index 5cf1fd359..223aecaab 100644 --- a/src/lxc/storage/dir.c +++ b/src/lxc/storage/dir.c @@ -183,14 +183,14 @@ int dir_mount(struct lxc_storage *bdev) ret = mount(source, target, "bind", mflags, mnt_opts->data); if (ret < 0) return log_error_errno(-errno, errno, "Failed to remount \"%s\" on \"%s\" read-only with options \"%s\", mount flags \"%lu\", and propagation flags \"%lu\"", - source ? source : "(none)", target, mnt_opts->data, mflags, mnt_opts->mnt_flags); + source, target, mnt_opts->data, mflags, mnt_opts->mnt_flags); else DEBUG("Remounted \"%s\" on \"%s\" read-only with options \"%s\", mount flags \"%lu\", and propagation flags \"%lu\"", - source ? source : "(none)", target, mnt_opts->data, mflags, mnt_opts->mnt_flags); + source, target, mnt_opts->data, mflags, mnt_opts->mnt_flags); } TRACE("Mounted \"%s\" on \"%s\" with options \"%s\", mount flags \"%lu\", and propagation flags \"%lu\"", - source ? source : "(none)", target, mnt_opts->data, mflags, mnt_opts->mnt_flags); + source, target, mnt_opts->data, mflags, mnt_opts->mnt_flags); } TRACE("Mounted \"%s\" onto \"%s\"", source, target);