X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fsnapshot.c;h=d914af20e7c0651f1301fa8be1d7874c249c1119;hp=21e89ac9964a7f07ed7caee2c962b3563909f928;hb=15bd5aee092572116886f0f9381f3477f48241fb;hpb=718db96199eb307751264e4163555662c9a389fa diff --git a/src/core/snapshot.c b/src/core/snapshot.c index 21e89ac99..d914af20e 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)