Fix from Paul Kortekaas for syslog -C option, size should be in kB.

This commit is contained in:
Glenn L McGrath 2004-02-22 12:17:33 +00:00
parent 4bded58207
commit df2c56529c

View File

@ -660,7 +660,7 @@ extern int syslogd_main(int argc, char **argv)
if (optarg) { if (optarg) {
int buf_size = atoi(optarg); int buf_size = atoi(optarg);
if (buf_size >= 4) { if (buf_size >= 4) {
shm_size = buf_size; shm_size = buf_size * 1024;
} }
} }
circular_logging = TRUE; circular_logging = TRUE;