summaryrefslogtreecommitdiffstats
path: root/src/shared/install-printf.c
diff options
context:
space:
mode:
authorDavide Cavalca <davide125@tiscali.it>2018-10-13 10:26:48 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-13 10:26:48 +0200
commitb75f0c69b3c80ab1d80f907de96f1c1a444c171a (patch)
treec2320b5e58c405c571b9ddd565d52d134501cc6c /src/shared/install-printf.c
parentMerge pull request #10366 from poettering/in-set-fixes (diff)
downloadsystemd-b75f0c69b3c80ab1d80f907de96f1c1a444c171a.tar.xz
systemd-b75f0c69b3c80ab1d80f907de96f1c1a444c171a.zip
shared: add %g, %G specifiers for group / gid (#10368)
Diffstat (limited to 'src/shared/install-printf.c')
-rw-r--r--src/shared/install-printf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/install-printf.c b/src/shared/install-printf.c
index 078d5734be..b87d6b9d55 100644
--- a/src/shared/install-printf.c
+++ b/src/shared/install-printf.c
@@ -129,6 +129,8 @@ int install_full_printf(UnitFileInstallInfo *i, const char *format, char **ret)
{ 'i', specifier_instance, NULL },
{ 'j', specifier_last_component, NULL },
+ { 'g', specifier_group_name, NULL },
+ { 'G', specifier_group_id, NULL },
{ 'U', specifier_user_id, NULL },
{ 'u', specifier_user_name, NULL },