in reply to Re: working with relative pathsin thread working with relative paths
Changing the way I used opendir() helped, actually. See above discussion for details.