Re: [PATCH 1/2] Create debug log file with more sane file permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/10/18 22:20, Karol Babioch wrote:
>  src/utils/wpa_debug.c | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
> 
> diff --git a/src/utils/wpa_debug.c b/src/utils/wpa_debug.c
> index 62758d864..b412f88e3 100644
> --- a/src/utils/wpa_debug.c
> +++ b/src/utils/wpa_debug.c
> @@ -58,6 +58,10 @@ static int wpa_to_android_level(int level)
>  #ifndef CONFIG_NO_STDOUT_DEBUG
>  
>  #ifdef CONFIG_DEBUG_FILE
> +#include <sys/types.h>
> +#include <sys/stat.h>
> +
> +static int out_fd = -1;

Does out_fd have to be a global variable given that it is only used in
wpa_debug_open?

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux