From b6234735b2850cf9209289514bb134f8ac55af78 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 28 Apr 2021 11:26:59 +0200 Subject: [PATCH] storage/dir: source can't be empty Signed-off-by: Christian Brauner --- src/lxc/storage/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.2