[OpenWrt-Devel] [PATCH 3/3] [rpcd] file: add support for setting mode when writing files
Luka Perkov
luka at openwrt.org
Mon Mar 16 13:42:55 EDT 2015
Hi John,
On Sun, Mar 15, 2015 at 10:27:49PM +0100, John Crispin wrote:
> > + umask(0);
>
> setting umask to 0 and then not resetting it to the old value afterwards
> seems wrong.
>
> ->> main.c: umask(0077);
Good catch. Will send v2.
Luka
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list