[GRASS-SVN] r31440 - grass/trunk/lib/imagery

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 20 03:18:05 EDT 2008


Author: neteler
Date: 2008-05-20 03:18:04 -0400 (Tue, 20 May 2008)
New Revision: 31440

Modified:
   grass/trunk/lib/imagery/sigfile.c
Log:
create missing directory (for i.class etc.) (trac #70)

Modified: grass/trunk/lib/imagery/sigfile.c
===================================================================
--- grass/trunk/lib/imagery/sigfile.c	2008-05-20 07:16:45 UTC (rev 31439)
+++ grass/trunk/lib/imagery/sigfile.c	2008-05-20 07:18:04 UTC (rev 31440)
@@ -9,6 +9,10 @@
     char element[GNAME_MAX*2];
     FILE *fd;
 
+    /* create sigset directory */
+    sprintf(element, "%s/subgroup/%s/sig", group, subgroup);
+    G__make_mapset_element_misc("group", element);
+
     sprintf (element, "subgroup/%s/sig/%s", subgroup, name);
 
     fd = G_fopen_new_misc ("group", element, group);



More information about the grass-commit mailing list