[PATCH v2] config_file: Honor permissions from the target file
Jouni Malinen
j at w1.fi
Fri Jul 31 06:11:37 PDT 2026
On Sun, Apr 19, 2026 at 05:02:02PM +0800, ShengYi Hung wrote:
> fwrite creates file with default permission (rw-r--r--) while the file
> does not exist. However, the wpa config file may be installed as
> (rw-------), which doesn't want other user to see the password.
>
> As a result, we honor these permissions from the original file by using
> stat and chmod syscalls.
Thanks, applied.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list