From 08d46c8072df9e5f8eb140bf6db254ed03b68f19 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 25 Jun 2008 15:19:44 +0000 Subject: fix fd leak when detecting network driver (mostly notable in network center and drakroam) --- perl-install/NEWS | 2 ++ perl-install/c/stuff.xs.pl | 1 + 2 files changed, 3 insertions(+) diff --git a/perl-install/NEWS b/perl-install/NEWS index 0405f9207..e48e9c7e6 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,5 +1,7 @@ - drakupdate_fstab: make sure removable disks are not fs-checked on boot (regression introduced in 10.6.3) +- fix file descriptor leak when detecting network driver + (mostly notable in network center and drakroam) Version 10.29.7 - 03 June 2008 diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl index 3058d4b66..a94de81fa 100644 --- a/perl-install/c/stuff.xs.pl +++ b/perl-install/c/stuff.xs.pl @@ -401,6 +401,7 @@ getNetDriver(char* device) break; } } else { perror("SIOCETHTOOL"); RETVAL = strdup(""); } + close(s); OUTPUT: RETVAL -- cgit v1.2.1