]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
systemd: Only the sd_notifyf() supports format-strings 2703/head
authorJorge Pereira <jpereiran@gmail.com>
Sat, 18 May 2019 20:23:26 +0000 (17:23 -0300)
committerJorge Pereira <jpereiran@gmail.com>
Sat, 18 May 2019 20:23:26 +0000 (17:23 -0300)
src/bin/radiusd.c

index 8efffced64ad62accd2ab476b85f8bfa3f0749f9..def959e40deebcea85ffa4024ad6c2cb298a2024 100644 (file)
@@ -634,7 +634,7 @@ int main(int argc, char *argv[])
                         *      Update the systemd MAINPID to be our child,
                         *      as the parent is about to exit.
                         */
-                       sd_notify(0, "MAINPID=%lu", (unsigned long)pid);
+                       sd_notifyf(0, "MAINPID=%lu", (unsigned long)pid);
 #endif
 
                        goto cleanup;