[LEDE-DEV] [PATCH rpcd v3] sys: fix passwd path

Roman Yeryomin roman at advem.lv
Sun Nov 26 16:31:17 PST 2017


On 2017-11-26 19:50, Arjen de Korte wrote:
> Citeren Roman Yeryomin <roman at advem.lv>:
> 
>> Changes from v2:
>> - const both to pointer and char itself, so nothing can be modified
> 
> The first const may be useful to prevent changes to the pointer, but
> the second is nonsense. You won't be able to modify the string it
> points to anyway.
> 
>     const char *passwd = "/bin/passwd";
> 

You are utterly wrong, try `passwd = "whatever";` after that ^^^





More information about the Lede-dev mailing list