Re: [exim] dsearch produces "stat failed"

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Thomassen
Data:  
A: exim-users
Assumpte: Re: [exim] dsearch produces "stat failed"
Magnus Holmgren wrote:
>> The code (/src/lookups/dsearch.c) says that stat() is used because the OS
>> scans the directory faster than Exim could. And strangely, I can only
>> find a stat() call (and not an lstat() call), but the behaviour is like
>> lstat().
>
> From my reading of lstat(2), it's the other way around. lstat() stats the
> link itself, whereas stat() follows the link. Thus, what you want *is*
> lstat().


You're right, I was confused by the stat binary (where `stat` means lstat(),
and `stat -L` means stat() ...). I'm going to file a bug report an this.

Thank you! :-)
Peter