core: update the right mtime after finishing writing of transient units (#3203)

Fixes: #3194
This commit is contained in:
Lennart Poettering 2016-05-06 18:22:22 +02:00 committed by Evgeny Vereshchagin
parent baa9ecc1ee
commit f76707da45
1 changed files with 1 additions and 1 deletions

View 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) {