Re: [OpenWrt-Devel] [PATCH] [rpcd][v2] file: add md5sum support

2015-04-14 Thread Jo-Philipp Wich
Ok, ACK from me then. Thanks for taking care of the merge. ~ Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH] [rpcd][v2] file: add md5sum support

2015-04-14 Thread John Crispin
[...] >>> + if (!S_ISREG(s.st_mode)) >>> + return UBUS_STATUS_NOT_SUPPORTED; >> >> should this not be -> UBUS_STATUS_INVALID_ARGUMENT > > I think "not supported" in response to "md5sum of a non-regular file" > (like a chardev or directory) makes sense here - imho. > your codebase,

Re: [OpenWrt-Devel] [PATCH] [rpcd][v2] file: add md5sum support

2015-04-14 Thread Jo-Philipp Wich
Hi, > comments inline dito. > On 12/04/2015 03:56, Luka Perkov wrote: >> Signed-off-by: Luka Perkov >> --- >> changes in v2: >> >> * no need to null-terminate string after sprintf() >> >> file.c | 35 +++ >> 1 file changed, 35 insertions(+) >> >> diff --git a/fi

Re: [OpenWrt-Devel] [PATCH] [rpcd][v2] file: add md5sum support

2015-04-14 Thread John Crispin
hi, comments inline On 12/04/2015 03:56, Luka Perkov wrote: > Signed-off-by: Luka Perkov > --- > changes in v2: > > * no need to null-terminate string after sprintf() > > file.c | 35 +++ > 1 file changed, 35 insertions(+) > > diff --git a/file.c b/file.c >

[OpenWrt-Devel] [PATCH] [rpcd][v2] file: add md5sum support

2015-04-11 Thread Luka Perkov
Signed-off-by: Luka Perkov --- changes in v2: * no need to null-terminate string after sprintf() file.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/file.c b/file.c index 3831c54..9c1b301 100644 --- a/file.c +++ b/file.c @@ -27,6 +27,7 @@ #include