]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fix namespace parsing 1632/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 21 Oct 2015 11:49:36 +0000 (11:49 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Wed, 21 Oct 2015 11:49:36 +0000 (11:49 +0000)
ReadOnlyDirectories=-/ works fine

src/core/load-fragment.c

index ba39df6877b7b2531d63637d735019277a068ef9..b36f5d532b8b9fac402010bb6072facdd9570fd9 100644 (file)
@@ -3227,7 +3227,7 @@ int config_parse_namespace_path_strv(
                         continue;
                 }
 
-                path_kill_slashes(n);
+                path_kill_slashes(n + offset);
 
                 r = strv_push(sv, n);
                 if (r < 0)