fix the %m specifier in syslog
authorClément Vasseur <clement.vasseur@gmail.com>
Wed, 9 Jul 2014 12:34:18 +0000 (14:34 +0200)
committerRich Felker <dalias@aerifal.cx>
Mon, 28 Jul 2014 04:27:59 +0000 (00:27 -0400)
commitbdd4c57e2588bf3cf273bcc3ff04a7584aa3391c
tree6946d486801c91822504da3e660edb7d29b6a838
parent147cd60d4da59b99963e480c811f746c853bd589
fix the %m specifier in syslog

errno must be saved upon vsyslog entry, otherwise its value could be
changed by some libc function before reaching the %m handler in
vsnprintf.

(cherry picked from commit da27118157c2942d7652138b8d8b0056fc8f872f)
src/misc/syslog.c