]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: update the right mtime after finishing writing of transient units (#3203)
authorLennart Poettering <lennart@poettering.net>
Fri, 6 May 2016 16:22:22 +0000 (18:22 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Fri, 6 May 2016 16:22:22 +0000 (19:22 +0300)
Fixes: #3194
src/core/unit.c

index 8153515e894b964d9b3d4433847a5eb26f5f89fc..d8ab5781b06fb9e95ba348efc4e912e8053a89fa 100644 (file)
@@ -1247,7 +1247,7 @@ int unit_load(Unit *u) {
                 fclose(u->transient_file);
                 u->transient_file = NULL;
 
-                u->dropin_mtime = now(CLOCK_REALTIME);
+                u->fragment_mtime = now(CLOCK_REALTIME);
         }
 
         if (UNIT_VTABLE(u)->load) {