Fix from Paul Kortekaas for syslog -C option, size should be in kB.
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 22 Feb 2004 12:17:33 +0000 (12:17 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 22 Feb 2004 12:17:33 +0000 (12:17 -0000)
sysklogd/syslogd.c

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