Volker Wichmann wrote: > Digging a little deeper, I found that the return values of the two > 'open' commands (variables fd and fd2) are reasonable - but what about > the return value of the read command (line 146, do_copy.c): > len = read(fd, buf, 1024) > Why is a 0 returned at the first call - my dataset is a valid raster, so > why an EOF before reading anything?
Some of the files comprising the map may be empty, e.g. FP maps have an empty "cell" file (the actual data is in the "fcell" file). > Maybe this is an issue of file permission? If you don't have the necessary permissions, the open() call will fail; read() and write() can't fail due to permissions. -- Glynn Clements <[EMAIL PROTECTED]> _______________________________________________ grass-dev mailing list grass-dev@grass.itc.it http://grass.itc.it/mailman/listinfo/grass-dev