mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
When reading a program name from the syslog configuration file,
do not stop copying it into a buffer when encountering a non-alphanumerical character. Only stop at unprintable characters. This makes syslogd work correctly with executables like `interp.bin', `httpd_old', etc. PR: misc/40941 MFC after: 1 week
This commit is contained in:
parent
93c0dc5ea6
commit
52384d0388
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100662
@ -1449,7 +1449,7 @@ init(int signo)
|
||||
continue;
|
||||
}
|
||||
for (i = 0; i < NAME_MAX; i++) {
|
||||
if (!isalnum(p[i]))
|
||||
if (!isprint(p[i]))
|
||||
break;
|
||||
prog[i] = p[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user