Hi tech@,

warn format string should be literal.

Comments? OK?

Index: sbin/shutdown/shutdown.c
===================================================================
RCS file: /cvs/src/sbin/shutdown/shutdown.c,v
retrieving revision 1.45
diff -u -p -r1.45 shutdown.c
--- sbin/shutdown/shutdown.c    1 Sep 2016 09:50:38 -0000       1.45
+++ sbin/shutdown/shutdown.c    3 Apr 2017 20:16:45 -0000
@@ -397,7 +397,7 @@ die_you_gravy_sucking_pig_dog(void)
                *arg++ = NULL;
                execve(path, args, NULL);
                syslog(LOG_ERR, "shutdown: can't exec %s: %m.", path);
-               warn(path);
+               warn("%s", path);
        }
        if (access(_PATH_RC, R_OK) != -1) {
                pid_t pid;

Reply via email to