]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: add a note clarifying that we should be careful when adding new specifiers 4835/head
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Dec 2016 18:03:22 +0000 (19:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Dec 2016 18:10:04 +0000 (19:10 +0100)
src/core/unit-printf.c

index 8f7eb84c6153e82e193692dde3b7b27f55efa051..746e1a46efd53fddf31432f3d82837c464e55eb8 100644 (file)
@@ -257,6 +257,10 @@ int unit_full_printf(Unit *u, const char *format, char **ret) {
          * %s: the shell of the running user
          *
          * %v: `uname -r` of the running system
+         *
+         * NOTICE: When you add new entries here, please be careful: specifiers which depend on settings of the unit
+         * file itself are broken by design, as they would resolve differently depending on whether they are used
+         * before or after the relevant configuration setting. Hence: don't add them.
          */
 
         const Specifier table[] = {