From: <ow...@us...> - 2008-03-28 13:48:21
|
Revision: 1237 http://ipcop.svn.sourceforge.net/ipcop/?rev=1237&view=rev Author: owes Date: 2008-03-28 06:48:26 -0700 (Fri, 28 Mar 2008) Log Message: ----------- Only write to hwdetect in installer mode, otherwise we will segfault. Modified Paths: -------------- ipcop/trunk/src/installer/hardware.c Modified: ipcop/trunk/src/installer/hardware.c =================================================================== --- ipcop/trunk/src/installer/hardware.c 2008-03-28 09:48:18 UTC (rev 1236) +++ ipcop/trunk/src/installer/hardware.c 2008-03-28 13:48:26 UTC (rev 1237) @@ -533,7 +533,10 @@ p = popen(command, "r"); if ( fgets(line, STRING_SIZE, p) ) { - fprintf(fhwdetect, "****\n%s\n%s\n", command, line); + if ( install_setup ) + { + fprintf(fhwdetect, "****\n%s\n%s\n", command, line); + } if ( (module = strchr(line, ' ')) != NULL ) { *module = 0; @@ -541,7 +544,10 @@ } } pclose(p); - fprintf(fhwdetect, "%s\n*****\n", line, module == NULL ? "still unknown" : module); + if ( install_setup ) + { + fprintf(fhwdetect, "%s\n*****\n", line, module == NULL ? "still unknown" : module); + } } fprintf(flog, " Add %s %s, %s\n", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |