Bug#571033: logrotate: Logrotate mis-parses config if log dir does not exist, and rotates wrong files

2010-03-22 Thread Weerasak Chongnguluam
Hello from Thailand Mini-DebCamp 2010 BSP. Could you try the following patch? I skip all block of shell script prerotate,postrotate,firstrotate, and lastrotate --- logrotate-3.7.8.orig/config.c +++ logrotate-3.7.8/config.c @@ -569,7 +569,23 @@ message(MESS_ERROR, "%s:%d } expected \n",

Bug#571033: logrotate: Logrotate mis-parses config if log dir does not exist, and rotates wrong files

2010-03-16 Thread Weerasak Chongnguluam
Hi Paul, from your patch parse571033.patch if *start == '\n' and (isblank(*start) && (*start)) never is true start dosen't incresed, cause infinite loop. Because isblank check only a space or a tab.

Bug#571033: logrotate: Logrotate mis-parses config if log dir does not exist, and rotates wrong files

2010-03-15 Thread Weerasak Chongnguluam
Hello from Thailand Mini-DebCamp 2010 BSP. Could you try the following patch? I skip all block of shell script prerotate,postrotate,firstrotate, and lastrotate. --- logrotate-3.7.8.orig/config.c +++ logrotate-3.7.8/config.c @@ -569,7 +569,23 @@ message(MESS_ERROR, "%s:%d } expected \n",