diff options
| author | David Malone <dwmalone@FreeBSD.org> | 2004-05-29 23:27:50 +0000 |
|---|---|---|
| committer | David Malone <dwmalone@FreeBSD.org> | 2004-05-29 23:27:50 +0000 |
| commit | 6f8c264082f558311f22a3d63b81b4fe080c26b2 (patch) | |
| tree | 966f093c4d8c63bf04633acb935483c2c00e1a45 /usr.sbin/syslogd | |
| parent | ac3a1548f84cda73725d4f433757c78668882eea (diff) | |
Notes
Diffstat (limited to 'usr.sbin/syslogd')
| -rw-r--r-- | usr.sbin/syslogd/syslogd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 50adb6290c9cc..146dfb02eb134 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -371,6 +371,8 @@ main(int argc, char *argv[]) KeepKernFac = 1; break; case 'l': + if (strlen(optarg) >= sizeof(sunx.sun_path)) + errx(1, "%s path too long, exiting", optarg); if (nfunix < MAXFUNIX) funixn[nfunix++] = optarg; else @@ -387,6 +389,8 @@ main(int argc, char *argv[]) use_bootfile = 1; break; case 'p': /* path */ + if (strlen(optarg) >= sizeof(sunx.sun_path)) + errx(1, "%s path too long, exiting", optarg); funixn[0] = optarg; break; case 'P': /* path for alt. PID */ |
