hostapd: CVE-2014-3686 fixes
[openwrt/staging/chunkeey.git] / package / network / services / hostapd / patches / 120-daemonize_fix.patch
index 20a1eb340b658f50623bec3beb4d2cb866edceca..032e2072a35770628f96831ab3b6c4bbebdb7cf2 100644 (file)
@@ -1,14 +1,14 @@
 --- a/src/utils/os_unix.c
 +++ b/src/utils/os_unix.c
-@@ -9,6 +9,7 @@
- #include "includes.h"
+@@ -10,6 +10,7 @@
  
  #include <time.h>
+ #include <sys/wait.h>
 +#include <fcntl.h>
  
  #ifdef ANDROID
  #include <sys/capability.h>
-@@ -154,59 +155,46 @@ int os_gmtime(os_time_t t, struct os_tm 
+@@ -155,59 +156,46 @@ int os_gmtime(os_time_t t, struct os_tm
        return 0;
  }