Pádraig Brady wrote:
> Solaris 10 gives an ENOTDIR error, while linux gives an EISDIR error.
> I'm not sure what to do in this case. Probably just remove the second
> truncate test in that file altogether.
The test is useful. You could see whether the file name ends in '/' before
you call open() on it, no?
Bruno