Re: shutdown(8): warn format string should be literal

2017-04-03 Thread Todd C. Miller
On Mon, 03 Apr 2017 22:21:10 +0200, Frederic Cambus wrote: > warn format string should be literal. OK millert@ Note that path can only be set to either _PATH_REBOOT or _PATH_HALT so there is no security issue, but the compiler doesn't know this. Changing the code helps eliminate false positives

shutdown(8): warn format string should be literal

2017-04-03 Thread Frederic Cambus
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.c1