qinhan620 / iperf

Automatically exported from code.google.com/p/iperf
0 stars 0 forks source link

tempfile remained in /tmp #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

There is a small defect in iperf_api.c in iperf-3.0b5 version.
After invoke mkstemp, u guys forgot to invoke unlink and here i offer an 
example.

    /* unlink temp file otherwise it would be remained in /tmp */ 
    if(0 != unlink(template)) {         
        i_errno = IECREATESTREAM;   /* here is not quite right */   
        return NULL; 
    } 

Original issue reported on code.google.com by zz1126wnx@gmail.com on 25 May 2013 at 11:04

GoogleCodeExporter commented 8 years ago
Thanks; fixed now.

Original comment by jef.posk...@gmail.com on 25 May 2013 at 2:23

GoogleCodeExporter commented 8 years ago
u are welcome.

Original comment by zz1126wnx@gmail.com on 25 May 2013 at 4:27