diff options
author | Zack Weinberg <zackw@panix.com> | 2018-03-07 14:32:02 -0500 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2018-12-05 18:15:43 -0200 |
commit | 124fc732c15ef37b7ee9db25b1e9f9b20c799623 (patch) | |
tree | 75f6e01ee571f6f1ae901b09669d89381945e881 /sysdeps/ieee754/ldbl-opt | |
parent | 698fb75b9ff5ae454a1344b5f9fafa0ca367c555 (diff) | |
download | glibc-124fc732c15ef37b7ee9db25b1e9f9b20c799623.tar.gz glibc-124fc732c15ef37b7ee9db25b1e9f9b20c799623.tar.xz glibc-124fc732c15ef37b7ee9db25b1e9f9b20c799623.zip |
Add __vsyslog_internal, with same flags as __v*printf_internal.
__nldbl___vsyslog_chk will ultimately want to pass PRINTF_LDBL_IS_DBL down to __vfprintf_internal *as well as* possibly setting PRINTF_FORTIFY. To make that possible, we need a __vsyslog_internal that takes the same flags as printf. The code in misc/syslog.c does also get a little simpler. Tested for powerpc and powerpc64le.
Diffstat (limited to 'sysdeps/ieee754/ldbl-opt')
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/nldbl-compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-compat.c b/sysdeps/ieee754/ldbl-opt/nldbl-compat.c index bda84af0bb..958bbc1834 100644 --- a/sysdeps/ieee754/ldbl-opt/nldbl-compat.c +++ b/sysdeps/ieee754/ldbl-opt/nldbl-compat.c @@ -843,7 +843,7 @@ attribute_compat_text_section __nldbl___vsyslog_chk (int pri, int flag, const char *fmt, va_list ap) { set_no_long_double (); - __vsyslog_chk (pri, flag, fmt, ap); + __vsyslog_internal (pri, fmt, ap, (flag > 0) ? PRINTF_FORTIFY : 0); clear_no_long_double (); } libc_hidden_def (__nldbl___vsyslog_chk) |