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

index 5cf1fd359631845c8fcd493de1877f4168f9ce56..223aecaab96e03b22a2824e0001d964449451a05 100644 (file)
@@ -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);