Anyone know what would cause a chdir() call in a program to fail with "EACCESS ( Permission denied )" at random?
Courier-POP3 at random is failing when I check my email. When I strace the process, the chdir('/var/spool/mail/pronco') fails, then 30secs later, it succeeds... then fails, then succeeds at random
The permissions on the dir or files inside it are not changing, (that I can see anyways)
Infact, it happens at random with every pop account. it's bizarre works one second, but fails the next.
access()
this the what exist error message of EACCESS means .
Permission bits of the file mode do not permit the requested access, or search permission is denied on a component of the path prefix.
-And it may fail to chdir() because the /var/spool/mail/$USER is file and it is not direcory,in most cases.
Diaa Radwan
accessing one file at once
I would think that it's a little something more then. I dunno why it would randomly start doing that?
Maybe running two processes or two things accessing one file at once. otherwise accessing the same file twice is not the best idea
Maybe I will kill such a processes then feedback
I used to be indecisive .. but now I'm not so sure