[GRASS-dev] Re: [GRASS GIS] #993: gem fails to compile on ubuntu 9.1

GRASS GIS trac at osgeo.org
Wed Mar 10 02:49:05 EST 2010


#993: gem fails to compile on ubuntu 9.1
------------------------+---------------------------------------------------
  Reporter:  mlechner   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect     |      Status:  new                      
  Priority:  normal     |   Milestone:  6.4.0                    
 Component:  Compiling  |     Version:  svn-trunk                
Resolution:             |    Keywords:  gem                      
  Platform:  Linux      |         Cpu:  Unspecified              
------------------------+---------------------------------------------------
Comment (by neteler):

 How about:
 {{{
 --- actions.c   (revision 41284)
 +++ actions.c   (working copy)
 @@ -97,7 +97,7 @@
      /* TODO: Do not hardcode temp paths */
      strcpy(TMPDIR, "/tmp/grass.extension.XXXXXX");     /* tmpdir is a
 global variable */
      mkstemp(TMPDIR);
 -    fd = open(TMPDIR, O_CREAT);
 +    fd = open(TMPDIR, O_CREAT, 0777);
      if (fd == -1) {
         print_error(ERR_UNPACK_EXT,
                     "could not create temp directory name: %s",
 }}}

 ?

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


More information about the grass-dev mailing list