tapdev6.c: do not ignore return value of system()
This commit is contained in:
parent
2c91ab6fad
commit
0340567af8
1 changed files with 4 additions and 1 deletions
|
@ -331,7 +331,10 @@ tapdev_init(void)
|
||||||
*/
|
*/
|
||||||
/* freebsd */
|
/* freebsd */
|
||||||
snprintf(buf, sizeof(buf), "ifconfig tap0 up");
|
snprintf(buf, sizeof(buf), "ifconfig tap0 up");
|
||||||
system(buf);
|
if(system(buf) == -1) {
|
||||||
|
perror("tapdev: system: ifconfig");
|
||||||
|
return;
|
||||||
|
}
|
||||||
printf("%s\n", buf);
|
printf("%s\n", buf);
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue