diff options
author | Dan Raymond <draymond@foxvalley.net> | 2021-04-13 10:26:12 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-04-13 16:33:27 -0300 |
commit | f2913118cdbe72e1e6d89273eddabdf35e9d6b73 (patch) | |
tree | b01f388978653db1355f21a50fb918b412e9d978 /sysdeps/unix/sysv/linux/tst-fallocate.c | |
parent | 58137d00ba9afda4ed78df8c146cc13cc732a6a2 (diff) | |
download | glibc-f2913118cdbe72e1e6d89273eddabdf35e9d6b73.tar.gz glibc-f2913118cdbe72e1e6d89273eddabdf35e9d6b73.tar.xz glibc-f2913118cdbe72e1e6d89273eddabdf35e9d6b73.zip |
misc: syslog: Fix calls to openlog() with LOG_KERN facility (BZ #3604)
POSIX states for syslog [1]: "Values of the priority argument are formed by OR'ing together a severity-level value and an optional facility value. If no facility value is specified, the current default facility value is used." So the patch fixes an existing violation of the openlog interface contract where it is ignoring the facility argument when the value is zero It allows the use LOG_KERN by calling openlog prior syslog usage. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/syslog.html
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-fallocate.c')
0 files changed, 0 insertions, 0 deletions