hostapd: refresh patches
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 100-daemonize_fix.patch
index 0389406a98a11a9eb4d5df64a30896e57dea103b..687bd4082dd4a73a18d7a7b56e60bfd896b38d5d 100644 (file)
@@ -8,7 +8,7 @@
  
  #ifdef ANDROID
  #include <sys/capability.h>
-@@ -179,59 +180,46 @@ int os_gmtime(os_time_t t, struct os_tm
+@@ -188,59 +189,46 @@ int os_gmtime(os_time_t t, struct os_tm
        return 0;
  }
  
 +      if (chdir("/") < 0)
                return -1;
 -      }
+-
 -      return 0;
 -}
 -#else /* __APPLE__ */
 -#define os_daemon daemon
 -#endif /* __APPLE__ */
--
 -
 -int os_daemonize(const char *pid_file)
 -{