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

Roman Yeryomin roman at advem.lv
Sun Nov 26 09:12:24 PST 2017


On 2017-11-26 17:39, Daniel Golle wrote:
> Hi Roman,
> 
> On Sun, Nov 26, 2017 at 12:02:14PM +0200, Roman Yeryomin wrote:
>> Changes from v1:
>> - use pointer to reduce compile size
>> 
>> Signed-off-by: Roman Yeryomin <roman at advem.lv>
>> ---
>>  sys.c | 5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>> 
>> diff --git a/sys.c b/sys.c
>> index 40f49ca..122191b 100644
>> --- a/sys.c
>> +++ b/sys.c
>> @@ -78,6 +78,7 @@ rpc_cgi_password_set(struct ubus_context *ctx, 
>> struct ubus_object *obj,
>>  	struct blob_attr *tb[__RPC_P_MAX];
>>  	ssize_t n;
>>  	int ret;
>> +	char *passwd = "/bin/passwd";
> 
> 'const' seems appropriate here.

OK :)




More information about the Lede-dev mailing list