]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
storage/dir: bdev->dest can't be empty
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 28 Apr 2021 09:21:03 +0000 (11:21 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 28 Apr 2021 09:21:03 +0000 (11:21 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/storage/dir.c

index b9118743c09dfe1e0da346ea391dedb046497053..38f8616b33ed46e35d0cc6aec5e53546ebc0e283 100644 (file)
@@ -179,14 +179,14 @@ int dir_mount(struct lxc_storage *bdev)
                        ret = mount(src, bdev->dest, "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\"",
-                                                      src ? src : "(none)", bdev->dest ? bdev->dest : "(none)", mnt_opts->data, mflags, mnt_opts->mnt_flags);
+                                                      src ? src : "(none)", bdev->dest, 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\"",
-                                     src ? src : "(none)", bdev->dest ? bdev->dest : "(none)", mnt_opts->data, mflags, mnt_opts->mnt_flags);
+                                     src ? src : "(none)", bdev->dest, mnt_opts->data, mflags, mnt_opts->mnt_flags);
                }
 
                TRACE("Mounted \"%s\" on \"%s\" with options \"%s\", mount flags \"%lu\", and propagation flags \"%lu\"",
-                     src ? src : "(none)", bdev->dest ? bdev->dest : "(none)", mnt_opts->data, mflags, mnt_opts->mnt_flags);
+                     src ? src : "(none)", bdev->dest, mnt_opts->data, mflags, mnt_opts->mnt_flags);
        }
 
        TRACE("Mounted \"%s\" onto \"%s\"", src, bdev->dest);