]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - CODING_STYLE
systemctl: don't use get_process_comm() on non-local PIDs (#7518)
[thirdparty/systemd.git] / CODING_STYLE
index 9dcc09030cfa7e1d72228b6a783c23749fe6668a..b090db370f005bd62ea1fe437d9ba16fa90a12c5 100644 (file)
   that interrupted system calls are automatically restarted, and we minimize
   hassles with handling EINTR (in particular as EINTR handling is pretty broken
   on Linux).
+
+- When applying C-style unescaping as well as specifier expansion on the same
+  string, always apply the C-style unescaping fist, followed by the specifier
+  expansion. When doing the reverse, make sure to escape '%' in specifier-style
+  first (i.e. '%' → '%%'), and then do C-style escaping where necessary.