assert(service);
+ if (!endswith(service, ".service") &&
+ !endswith(service, ".socket") &&
+ !endswith(service, ".mount") &&
+ !endswith(service, ".swap"))
+ return 0;
+
if (n_columns <= 0)
n_columns = columns();
if (!prefix)
prefix = "";
- if (asprintf(&m, "_SYSTEMD_SERVICE=%s", service) < 0) {
+ if (asprintf(&m, "_SYSTEMD_UNIT=%s", service) < 0) {
r = -ENOMEM;
goto finish;
}