diff options
Diffstat (limited to 'src/core/snapshot.c')
-rw-r--r-- | src/core/snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/snapshot.c b/src/core/snapshot.c index 21e89ac996..d914af20e7 100644 --- a/src/core/snapshot.c +++ b/src/core/snapshot.c @@ -200,7 +200,7 @@ int snapshot_create(Manager *m, const char *name, bool cleanup, sd_bus_error *e, assert(_s); if (name) { - if (!unit_name_is_valid(name, false)) + if (!unit_name_is_valid(name, TEMPLATE_INVALID)) return sd_bus_error_setf(e, SD_BUS_ERROR_INVALID_ARGS, "Unit name %s is not valid.", name); if (unit_name_to_type(name) != UNIT_SNAPSHOT) |