[GRASS5] Re: [GRASSLIST:4315] Re: s.surf.rst output extent (wrap up)
glynn.clements at virgin.net
Mon Aug 19 14:47:15 EDT 2002
Bernhard Reiter wrote:
> > a cross-post from grasslist:
> > Should we consider to force a chmod to write permission enabled for user
> > in case a map is set to read-only (example see below)?
> We should add a permission check and issue a warning.
It's better to just improve the reporting of any errors which occur.
IOW, if a system call fails, report the actual OS-level error using
perror or strerror(errno).
Trying to guess in advance whether a system call will succeed is very
difficult to get right. It's a lot easier to just execute the
system call and report any errors.
 Actually, race conditions mean that it's impossible to get right.
> I'm not sure that forcing a permission is a good idea.
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev