On Mon, Sep 14, 2020 at 7:07 PM Thomas Huth <th...@redhat.com> wrote: > > On 14/09/2020 10.19, 罗勇刚(Yonggang Luo) wrote: > > > > > > On Mon, Sep 14, 2020 at 3:23 PM Thomas Huth <th...@redhat.com > > <mailto:th...@redhat.com>> wrote: > >> > >> On 13/09/2020 00.44, Yonggang Luo wrote: > >> > Fixes following tests on msys2/mingw > >> > 'test-crypto-tlscredsx509': ['crypto-tls-x509-helpers.c', > > 'pkix_asn1_tab.c', > >> > tasn1, crypto], > >> > 'test-crypto-tlssession': ['crypto-tls-x509-helpers.c', > > 'pkix_asn1_tab.c', 'crypto-tls-psk-helpers.c', > >> > tasn1, crypto], > >> > 'test-io-channel-tls': ['io-channel-helpers.c', > > 'crypto-tls-x509-helpers.c', 'pkix_asn1_tab.c', > >> > tasn1, io, crypto]} > >> > These tests are failure with: > >> > ERROR test-crypto-tlscredsx509 - missing test plan > >> > ERROR test-crypto-tlssession - missing test plan > >> > ERROR test-io-channel-tls - missing test plan > >> > > >> > Because on win32 those test case are all disabled in the header > >> > > >> > Add qemu_socket_pair for cross platform support, convert file system > >> > handling functions to glib > >> > Add qemu_link function instead posix only link function. > >> > Use send ad recv from qemu that convert Windows Socks error > >> > to errno properly. > >> > > >> > Signed-off-by: Yonggang Luo <luoyongg...@gmail.com > > <mailto:luoyongg...@gmail.com>> > >> > --- > [...] > >> Where do you've got this code from? It seems like this has been taken > >> from a 3rd party source? E.g.: > >> > >> https://blog.csdn.net/wufuhuai/article/details/79761889 > >> > >> What's the license of this new code? ... please clarify such details in > >> the commit description. > > > > The original code have no license information, neither copyleft nor > > copyright, what's your suggestion > > or rewrite it? > > > > You can not simply copy code without license information and submit this > as if it was your own! Please never do that again! > With your Signed-off-by line, you basically acknowledge that you've read > and followed the Developer Certificate of Origin: > > https://developercertificate.org/ > > If you haven't done that yet, please do it now! > > And for this patch here, I don't think that it is acceptable without > proper license information. > > Thomas > See that, How about using https://developer.gnome.org/glib/stable/glib-IO-Channels.html#g-io-channel-new-file to act as socketpair? and it's cross-platform, I don't need to add platform-dependent codes.
-- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo