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:
Robert Drehmel 2002-07-25 09:56:37 +00:00
parent 93c0dc5ea6
commit 52384d0388

View File

@ -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];
}