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

2017-11-28 Thread Jo-Philipp Wich
Merged to rpcd.git in https://git.lede-project.org/?p=project/rpcd.git;a=commitdiff;h=74a784f037867025ad1c6b8c38bfdfa548742339 - thanks. ~ Jo ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev

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

2017-11-26 Thread Roman Yeryomin
On 2017-11-26 19:50, Arjen de Korte wrote: Citeren Roman Yeryomin : 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 point

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

2017-11-26 Thread Arjen de Korte
Citeren Roman Yeryomin : 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 =

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

2017-11-26 Thread Roman Yeryomin
Changes from v2: - const both to pointer and char itself, so nothing can be modified Signed-off-by: Roman Yeryomin --- 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_pass