G_legal_filename() cleanup patch for GRASS 6
|Reported by:||neteler||Owned by:|
Continued here from bug #2025:
Replying to glynn:
... is meant for anything which will be a single component of a pathname: either an unqualified map name, or a mapset name, or a location name.
Any characters which have "meaning" to GRASS or to the OS are not "legal" in this sense, so it rejects names which contain e.g. "@" (mapset separator) or "/" (directory separator).
Attached a backport of r32820 from GRASS 7. Please verify.