[GRASS5] [bug #3514] (grass) r.surf.contour - dozens of warnings

Glynn Clements glynn at gclements.plus.com
Fri Aug 12 11:37:16 EDT 2005


Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=3514

> Subject: r.surf.contour - dozens of warnings

> GRASS 6.1.cvs (caves_utm33):~ > r.surf.contour input=melio_poz_clear_rast output=melio_poz_clear_rast_10_dem2
> 
> WARNING: segment_pagein: No such file or directory

> Although it completes, looks scarry. What is it?

    if (read (SEG->fd, SEG->scb[cur].buf, SEG->size) != SEG->size)
    {
	G_warning ("segment_pagein: %s\n", strerror(errno));
	return -1;
    }

The warning occurs if read() returns a short count, i.e. if you try to
read beyond the end of the file, or an error.

The actual error message is bogus; read() only sets errno if it
returns a negative result, not if it returns a short count.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list