]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/tmpfiles/tmpfiles.c
Merge pull request #8953 from yuwata/bus-macro
[thirdparty/systemd.git] / src / tmpfiles / tmpfiles.c
index b4a9b877289c4c5b67c48b4fcda1cc530c793a8d..6e992ca3a90caf036fae82d65c4b865893d3f987 100644 (file)
@@ -1504,7 +1504,7 @@ static int create_item(Item *i) {
 
                 if (IN_SET(i->type, CREATE_SUBVOLUME, CREATE_SUBVOLUME_INHERIT_QUOTA, CREATE_SUBVOLUME_NEW_QUOTA)) {
 
-                        if (btrfs_is_subvol(isempty(arg_root) ? "/" : arg_root) <= 0)
+                        if (btrfs_is_subvol(empty_to_root(arg_root)) <= 0)
 
                                 /* Don't create a subvolume unless the
                                  * root directory is one, too. We do