[GRASS-dev] [GRASS GIS] #1912: g.mapset warns of illegal filename in mapset= but creates the mapset anyway.

GRASS GIS trac at osgeo.org
Wed Apr 3 09:46:17 PDT 2013


#1912: g.mapset warns of illegal filename in mapset= but creates the mapset
anyway.
-------------------------+--------------------------------------------------
 Reporter:  torsti       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Default      |     Version:  svn-trunk                
 Keywords:               |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by martinl):

 Replying to [comment:1 torsti]:
 > Looking at the source it seems the issue is that neither
 '''general/g.mapset/main.c''' nor '''lib/gis/make_mapset.c''' include a
 call to ''G_legal_name()'' and the mapset dir itself is created with
 ''G_mkdir()'' which is just a thin wrapper around ''mkdir()''.
 >
 > So probably '''make_mapset.c''' is what should be patched.

 The warning is printed by the parsers (which calls `G_find_file()`), I
 disabled this check (file overwrite) for 'mapset' element in r55612. In
 r55608 I added to `G_make_mapset()` check for name legality. Done only in
 GRASS 7.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1912#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list