[GRASS-dev] Re: [GRASS GIS] #508: hardcoded /dev/null

GRASS GIS trac at osgeo.org
Wed Mar 2 12:05:34 EST 2011


#508: hardcoded /dev/null
--------------------------------+-------------------------------------------
 Reporter:  hamish              |       Owner:  grass-dev@…              
     Type:  defect              |      Status:  new                      
 Priority:  major               |   Milestone:  6.4.0                    
Component:  Default             |     Version:  6.4.0 RCs                
 Keywords:  wingrass /dev/null  |    Platform:  MSWindows XP             
      Cpu:  x86-32              |  
--------------------------------+-------------------------------------------

Comment(by neteler):

 The remaining /dev/null are

 {{{
 find . -name '*.c' | xargs grep '/dev/null'
 ./raster/r.out.mpeg/main.c:    if (256 == G_system("ppmtompeg 2>
 /dev/null"))
 ./raster/r.out.mpeg/main.c:    else if (256 == G_system("mpeg_encode 2>
 /dev/null"))
 ./raster/r.out.mpeg/main.c:     sprintf(cmd, "%s %s 2> /dev/null >
 /dev/null", encoder, mpfilename);
 ./raster/r.out.mpeg/main.c:     sprintf(cmd, "%s %s 2> /dev/null >
 /dev/null", encoder, mpfilename);
 ./raster/r.out.mpeg/main.c:         sprintf(cmd, "cd %s; \\ls %s >> %s 2>
 /dev/null",
 ./display/drivers/XDRIVER/Serve_Xevent.c:    open("/dev/null", O_RDONLY);
 ./display/drivers/XDRIVER/Serve_Xevent.c:    open("/dev/null", O_WRONLY);
 ./display/drivers/XDRIVER/Serve_Xevent.c:    open("/dev/null", O_WRONLY);
 ./display/d.ask/main.c: fd = popen("d.menu tcolor=red > /dev/null", "w");
 ./visualization/xganim/main.c:      sprintf(cmd, "cd %s; \\ls %s >> %s 2>
 /dev/null", path, wildarg,
 }}}

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



More information about the grass-dev mailing list