dymap_init() reads /etc/postfix/dynamicmaps.cf.d directory and we seem
to constantly get "warning: /etc/postfix/dynamicmaps.cf.d: directory
read error: No such file or directory".

---8<---
Apr 21 16:41:47 foo7 postfix/qmgr[3538]: scan_dir_push: open
/etc/postfix/dynamicmaps.cf.d
Apr 21 16:41:47 foo7 postfix/qmgr[3538]: scan_dir_next: skip .
Apr 21 16:41:47 foo7 postfix/qmgr[3538]: scan_dir_next: skip ..
Apr 21 16:41:47 foo7 postfix/qmgr[3538]: warning:
/etc/postfix/dynamicmaps.cf.d: directory read error: No such file or
directory
Apr 21 16:41:47 foo7 postfix/qmgr[3538]: scan_dir_pop: close
/etc/postfix/dynamicmaps.cf.d
---8<---

Should scan_dir_next() use readdir_r() instead of readdir() or should
errno be cleared before scan_dir_next() while -loop in dymap_init()?

According to readdir(3) when no new directory entries are found it
returns NULL and leaves errno unchanged thus not clearing previous
errors if any.

If I "mv /etc/postfix/dynamicmaps.cf.d /etc/postfix/dynamicmaps.cf.dd"
and do postfix restart I stays quiet.

//Mika

-- 
Mika Ilmaranta <il...@foobar.fi>
Foobar Linux services
+358 50 3023638
Foobar Oy <http://foobar.fi/>

Reply via email to