]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fix values of BindPaths and BindReadOnlyPaths properties on 32-bit platforms...
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 10 Apr 2017 11:20:17 +0000 (14:20 +0300)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Apr 2017 11:20:17 +0000 (13:20 +0200)
$ busctl get-property \
    org.freedesktop.systemd1 \
    /org/freedesktop/systemd1/unit/run_2dr471de87550554a6dbb165501c33c5dab_2eservice \
    org.freedesktop.systemd1.Service BindReadOnlyPaths

a(ssbt) 1 "/etc" "/etc" false 9228635523571007488

The correct values are 0 and 16384

src/core/dbus-execute.c

index 7df4cab3f6f250e0d93f1c7ca5d9ce20d6331d06..0454a28e12b8cb9495f330f95aa305ca3761d053 100644 (file)
@@ -710,7 +710,7 @@ static int property_get_bind_paths(
                                 c->bind_mounts[i].source,
                                 c->bind_mounts[i].destination,
                                 c->bind_mounts[i].ignore_enoent,
-                                c->bind_mounts[i].recursive ? MS_REC : 0);
+                                c->bind_mounts[i].recursive ? (uint64_t) MS_REC : (uint64_t) 0);
                 if (r < 0)
                         return r;
         }