]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #15697 from OhNoMoreGit/fix-path-units
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 25 Jun 2020 16:23:47 +0000 (18:23 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2020 16:23:47 +0000 (18:23 +0200)
Recheck PathExists=, PathExistsGlob=, DirectoryNotEmpty= when triggered unit terminates

1  2 
src/core/path.c

diff --cc src/core/path.c
index 1bbf27c5c571c1fb2aba6a8cf5060c3609b67a63,a98a0a14e96fb55be0255ae33c3a6b615fa5ae05..1c3c28e34172c2b5484ded964e723283da82f969
@@@ -613,11 -615,10 +615,11 @@@ static int path_serialize(Unit *u, FIL
                  if (!escaped)
                          return log_oom();
  
 +                assert_se(type = path_type_to_string(s->type));
                  (void) serialize_item_format(f, "path-spec", "%s %i %s",
 -                                             path_type_to_string(s->type),
 +                                             type,
                                               s->previous_exists,
-                                              s->path);
+                                              escaped);
          }
  
          return 0;