Skip to contentSkip to conversation

Misc next patches

GIT PULL Applied Daniel P. Berrangé 2 participants 7 messages Oct 29, 2020 – Oct 31, 2020

lore
Share & tools
lore
#0 lore raw

The following changes since commit bbc48d2bcb9711614fbe751c2c5ae13e172fbca8:

Merge remote-tracking branch 'remotes/philmd-gitlab/tags/renesas-20201027' =
into staging (2020-10-28 16:25:31 +0000)

are available in the Git repository at:

https://gitlab.com/berrange/qemu tags/misc-next-pull-request

for you to fetch changes up to dfc00eb7dea43bfb6d4a2ba38c4f6bc9745f3729:

util: include the target address in socket connect failures (2020-10-29 09:=
57:37 +0000)

----------------------------------------------------------------
Misc fixes

* Improve socket cnnection failure error reporting
* Fix LGPL version number

----------------------------------------------------------------

AlexChen (1):
io: Don't use '#' flag of printf format

Chetan Pant (3):
io: Fix Lesser GPL version number
crypt: Fix Lesser GPL version number
authz: Fix Lesser GPL version number

Daniel P. Berrang=C3=A9 (1):
util: include the target address in socket connect failures

 authz/base.c                    |  2 +-
 authz/list.c                    |  2 +-
 authz/listfile.c                |  2 +-
 authz/pamacct.c                 |  2 +-
 authz/simple.c                  |  2 +-
 include/authz/base.h            |  2 +-
 include/authz/list.h            |  2 +-
 include/authz/listfile.h        |  2 +-
 include/authz/pamacct.h         |  2 +-
 include/authz/simple.h          |  2 +-
 include/io/channel-buffer.h     |  2 +-
 include/io/channel-command.h    |  2 +-
 include/io/channel-file.h       |  2 +-
 include/io/channel-socket.h     |  2 +-
 include/io/channel-tls.h        |  2 +-
 include/io/channel-util.h       |  2 +-
 include/io/channel-watch.h      |  2 +-
 include/io/channel-websock.h    |  2 +-
 include/io/channel.h            |  2 +-
 include/io/dns-resolver.h       |  2 +-
 include/io/task.h               |  2 +-
 io/channel-buffer.c             |  2 +-
 io/channel-command.c            |  2 +-
 io/channel-file.c               |  2 +-
 io/channel-socket.c             |  2 +-
 io/channel-tls.c                |  2 +-
 io/channel-util.c               |  2 +-
 io/channel-watch.c              |  2 +-
 io/channel-websock.c            |  4 ++--
 io/channel.c                    |  2 +-
 io/dns-resolver.c               |  2 +-
 io/task.c                       |  2 +-
 tests/qemu-iotests/162.out      |  4 ++--
 tests/test-authz-list.c         |  2 +-
 tests/test-authz-listfile.c     |  2 +-
 tests/test-authz-pam.c          |  2 +-
 tests/test-authz-simple.c       |  2 +-
 tests/test-crypto-afsplit.c     |  2 +-
 tests/test-crypto-block.c       |  2 +-
 tests/test-crypto-cipher.c      |  2 +-
 tests/test-crypto-hash.c        |  2 +-
 tests/test-crypto-ivgen.c       |  2 +-
 tests/test-crypto-secret.c      |  2 +-
 tests/test-crypto-xts.c         |  2 +-
 tests/test-io-channel-buffer.c  |  2 +-
 tests/test-io-channel-command.c |  2 +-
 tests/test-io-channel-file.c    |  2 +-
 tests/test-io-channel-socket.c  |  2 +-
 tests/test-io-task.c            |  2 +-
 util/qemu-sockets.c             | 32 +++++++++++++++++++-------------
 50 files changed, 70 insertions(+), 64 deletions(-)

--=20
2.28.0

#1 lore raw

[PULL 3/5] authz: Fix Lesser GPL version number

From: Chetan Pant <[email protected]>

There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section.

---
 authz/base.c                | 2 +-
 authz/list.c                | 2 +-
 authz/listfile.c            | 2 +-
 authz/pamacct.c             | 2 +-
 authz/simple.c              | 2 +-
 include/authz/base.h        | 2 +-
 include/authz/list.h        | 2 +-
 include/authz/listfile.h    | 2 +-
 include/authz/pamacct.h     | 2 +-
 include/authz/simple.h      | 2 +-
 tests/test-authz-list.c     | 2 +-
 tests/test-authz-listfile.c | 2 +-
 tests/test-authz-pam.c      | 2 +-
 tests/test-authz-simple.c   | 2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)
authz/base.c +1 -1
index c75bce3fd1..f2b7fbe9c1 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/list.c +1 -1
index 28b990931a..0e17eed897 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/listfile.c +1 -1
index aaf930453d..24feac35ab 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/pamacct.c +1 -1
index c91593bbd8..e67195f7be 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/simple.c +1 -1
index ee061e980d..18db0355f4 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/base.h +1 -1
index eca170ee1a..b53e4e4507 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/list.h +1 -1
index f73bc5c50a..7ef4ad4b4e 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/listfile.h +1 -1
index 51824f3fb2..0a1e5bddd3 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/pamacct.h +1 -1
index d05c18a3a4..592edb2bf0 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/simple.h +1 -1
index 9f5b979e13..c46a5ac5a1 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-list.c +1 -1
index d80e6a6d4d..5351992a01 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-listfile.c +1 -1
index 26166b691b..64d0e1500f 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-pam.c +1 -1
index 02bb1493e7..1baeadee03 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-simple.c +1 -1
index d21d43e2e9..6f9034d8ff 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
Signature · 1 line
2.28.0
#2 lore raw

[PULL 1/5] io: Fix Lesser GPL version number

In reply to Daniel P. Berrangé

From: Chetan Pant <[email protected]>

There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section.

---
 include/io/channel-buffer.h     | 2 +-
 include/io/channel-command.h    | 2 +-
 include/io/channel-file.h       | 2 +-
 include/io/channel-socket.h     | 2 +-
 include/io/channel-tls.h        | 2 +-
 include/io/channel-util.h       | 2 +-
 include/io/channel-watch.h      | 2 +-
 include/io/channel-websock.h    | 2 +-
 include/io/channel.h            | 2 +-
 include/io/dns-resolver.h       | 2 +-
 include/io/task.h               | 2 +-
 io/channel-buffer.c             | 2 +-
 io/channel-command.c            | 2 +-
 io/channel-file.c               | 2 +-
 io/channel-socket.c             | 2 +-
 io/channel-tls.c                | 2 +-
 io/channel-util.c               | 2 +-
 io/channel-watch.c              | 2 +-
 io/channel-websock.c            | 2 +-
 io/channel.c                    | 2 +-
 io/dns-resolver.c               | 2 +-
 io/task.c                       | 2 +-
 tests/test-io-channel-buffer.c  | 2 +-
 tests/test-io-channel-command.c | 2 +-
 tests/test-io-channel-file.c    | 2 +-
 tests/test-io-channel-socket.c  | 2 +-
 tests/test-io-task.c            | 2 +-
 27 files changed, 27 insertions(+), 27 deletions(-)
include/io/channel-buffer.h +1 -1
index 518c28f13f..c9463ee655 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-command.h +1 -1
index 5556a38d7e..27e42bdadc 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-file.h +1 -1
index c61d6e0ef7..50e8eb1138 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-socket.h +1 -1
index d07d67fab6..e747e63514 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-tls.h +1 -1
index 6dd1a3cd3c..5672479e9e 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-util.h +1 -1
index c0b79cf603..a5d720d9a0 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-watch.h +1 -1
index 63bc4ae2d9..a36aab8f8f 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-websock.h +1 -1
index 9c40513e74..e180827c57 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel.h +1 -1
index 3c04f0edda..4d6fe45f63 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/dns-resolver.h +1 -1
index 01d0bd7a42..558ea517de 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/task.h +1 -1
index 6818dfedd0..beec4f5cfd 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-buffer.c +1 -1
index 5402e0cced..baa4e2b089 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-command.c +1 -1
index 368dd62b7e..b2a9e27138 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-file.c +1 -1
index 2ed3b75e8b..c4bf799a80 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-socket.c +1 -1
index e1b4667087..de259f7eed 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-tls.c +1 -1
index 7ec8ceff2f..388f019977 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-util.c +1 -1
index 423d79845a..848a7a43d6 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-watch.c +1 -1
index 8640d1c464..0289b3647c 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-websock.c +1 -1
index 47a0e941d9..bb545fa327 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel.c +1 -1
index e4376eb0bc..93d449dee2 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/dns-resolver.c +1 -1
index b55d8cc3fe..743a0efc87 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/task.c +1 -1
index 53c0bed686..451f26f8b4 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-buffer.c +1 -1
index 59d6c64b04..9c6724dea4 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-command.c +1 -1
index 3bc5266121..99056e07c0 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-file.c +1 -1
index 0aa0477541..29038e67b6 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-socket.c +1 -1
index 743577d744..c49eec1f03 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-task.c +1 -1
index 85e7a98da5..953a50ae66 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
Signature · 1 line
2.28.0
#3 lore raw

[PULL 2/5] crypt: Fix Lesser GPL version number

In reply to Daniel P. Berrangé

From: Chetan Pant <[email protected]>

There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section.

---
 tests/test-crypto-afsplit.c | 2 +-
 tests/test-crypto-block.c   | 2 +-
 tests/test-crypto-cipher.c  | 2 +-
 tests/test-crypto-hash.c    | 2 +-
 tests/test-crypto-ivgen.c   | 2 +-
 tests/test-crypto-secret.c  | 2 +-
 tests/test-crypto-xts.c     | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
tests/test-crypto-afsplit.c +1 -1
index f9f2fcd417..00a7c180fd 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-block.c +1 -1
index 7c1ab07855..3b1f0d509f 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-cipher.c +1 -1
index bebba1a4f4..280319a223 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-hash.c +1 -1
index 214a9f72c3..ce7d0ab9b5 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-ivgen.c +1 -1
index a5ff5d3da6..f581e6aba7 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-secret.c +1 -1
index 9d06176663..34a4aecc12 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-xts.c +1 -1
index 6fb61cf635..7acbc956fd 100644
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
Signature · 1 line
2.28.0
#4 lore raw

[PULL 4/5] io: Don't use '#' flag of printf format

In reply to Daniel P. Berrangé

From: AlexChen <[email protected]>

---
 io/channel-websock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io/channel-websock.c +1 -1
index bb545fa327..03c1f7cb62 100644
@@ -746,7 +746,7 @@ static int qio_channel_websock_decode_header(QIOChannelWebsock *ioc,
             opcode != QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE &&
             opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PING &&
             opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PONG) {
-            error_setg(errp, "unsupported opcode: %#04x; only binary, close, "
+            error_setg(errp, "unsupported opcode: 0x%04x; only binary, close, "
                        "ping, and pong websocket frames are supported", opcode);
             qio_channel_websock_write_close(
                 ioc, QIO_CHANNEL_WEBSOCK_STATUS_INVALID_DATA ,
Signature · 1 line
2.28.0
#5 lore raw

[PULL 5/5] util: include the target address in socket connect failures

In reply to Daniel P. Berrangé

Reporting "Failed to connect socket" is essentially useless for a user attempting to diagnose failure. It needs to include the target address details. Similarly when failing to create a socket we should include the socket family info, so the user understands what particular feature was missing in their kernel build (IPv6, VSock in particular).

---
 tests/qemu-iotests/162.out |  4 ++--
 util/qemu-sockets.c        | 32 +++++++++++++++++++-------------
 2 files changed, 21 insertions(+), 15 deletions(-)
tests/qemu-iotests/162.out +2 -2
index 5a00d36d17..f8714cb0d2 100644
@@ -6,8 +6,8 @@ image: nbd://localhost:PORT
 image: nbd+unix://?socket=42
 
 === SSH ===
-qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "port": "0", "path": "/foo"}': Failed to connect socket: Connection refused
-qemu-img: Could not open 'driver=ssh,host=localhost,port=0,path=/foo': Failed to connect socket: Connection refused
+qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "port": "0", "path": "/foo"}': Failed to connect to 'localhost:0': Connection refused
+qemu-img: Could not open 'driver=ssh,host=localhost,port=0,path=/foo': Failed to connect to 'localhost:0': Connection refused
 qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "port": 0.42, "path": "/foo"}': Parameter 'port' expects a number
 qemu-img: Could not open 'driver=ssh,host=localhost,port=0.42,path=/foo': Parameter 'port' expects a number
 
util/qemu-sockets.c +19 -13
index 05e5c73f9d..38f82179b0 100644
@@ -354,15 +354,15 @@ listen_ok:
     ((rc) == -EINPROGRESS)
 #endif
 
-static int inet_connect_addr(struct addrinfo *addr, Error **errp);
-
-static int inet_connect_addr(struct addrinfo *addr, Error **errp)
+static int inet_connect_addr(const InetSocketAddress *saddr,
+                             struct addrinfo *addr, Error **errp)
 {
     int sock, rc;
 
     sock = qemu_socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
     if (sock < 0) {
-        error_setg_errno(errp, errno, "Failed to create socket");
+        error_setg_errno(errp, errno, "Failed to create socket family %d",
+                         addr->ai_family);
         return -1;
     }
     socket_set_fast_reuse(sock);
@@ -376,7 +376,8 @@ static int inet_connect_addr(struct addrinfo *addr, Error **errp)
     } while (rc == -EINTR);
 
     if (rc < 0) {
-        error_setg_errno(errp, errno, "Failed to connect socket");
+        error_setg_errno(errp, errno, "Failed to connect to '%s:%s'",
+                         saddr->host, saddr->port);
         closesocket(sock);
         return -1;
     }
@@ -455,7 +456,7 @@ int inet_connect_saddr(InetSocketAddress *saddr, Error **errp)
     for (e = res; e != NULL; e = e->ai_next) {
         error_free(local_err);
         local_err = NULL;
-        sock = inet_connect_addr(e, &local_err);
+        sock = inet_connect_addr(saddr, e, &local_err);
         if (sock >= 0) {
             break;
         }
@@ -549,7 +550,8 @@ static int inet_dgram_saddr(InetSocketAddress *sraddr,
     /* create socket */
     sock = qemu_socket(peer->ai_family, peer->ai_socktype, peer->ai_protocol);
     if (sock < 0) {
-        error_setg_errno(errp, errno, "Failed to create socket");
+        error_setg_errno(errp, errno, "Failed to create socket family %d",
+                         peer->ai_family);
         goto err;
     }
     socket_set_fast_reuse(sock);
@@ -562,7 +564,8 @@ static int inet_dgram_saddr(InetSocketAddress *sraddr,
 
     /* connect to peer */
     if (connect(sock,peer->ai_addr,peer->ai_addrlen) < 0) {
-        error_setg_errno(errp, errno, "Failed to connect socket");
+        error_setg_errno(errp, errno, "Failed to connect to '%s:%s'",
+                         addr, port);
         goto err;
     }
 
@@ -735,13 +738,15 @@ static bool vsock_parse_vaddr_to_sockaddr(const VsockSocketAddress *vaddr,
     return true;
 }
 
-static int vsock_connect_addr(const struct sockaddr_vm *svm, Error **errp)
+static int vsock_connect_addr(const VsockSocketAddress *vaddr,
+                              const struct sockaddr_vm *svm, Error **errp)
 {
     int sock, rc;
 
     sock = qemu_socket(AF_VSOCK, SOCK_STREAM, 0);
     if (sock < 0) {
-        error_setg_errno(errp, errno, "Failed to create socket");
+        error_setg_errno(errp, errno, "Failed to create socket family %d",
+                         AF_VSOCK);
         return -1;
     }
 
@@ -754,7 +759,8 @@ static int vsock_connect_addr(const struct sockaddr_vm *svm, Error **errp)
     } while (rc == -EINTR);
 
     if (rc < 0) {
-        error_setg_errno(errp, errno, "Failed to connect socket");
+        error_setg_errno(errp, errno, "Failed to connect to '%s:%s'",
+                         vaddr->cid, vaddr->port);
         closesocket(sock);
         return -1;
     }
@@ -770,7 +776,7 @@ static int vsock_connect_saddr(VsockSocketAddress *vaddr, Error **errp)
         return -1;
     }
 
-    return vsock_connect_addr(&svm, errp);
+    return vsock_connect_addr(vaddr, &svm, errp);
 }
 
 static int vsock_listen_saddr(VsockSocketAddress *vaddr,
@@ -994,7 +1000,7 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp)
     } while (rc == -EINTR);
 
     if (rc < 0) {
-        error_setg_errno(errp, -rc, "Failed to connect socket %s",
+        error_setg_errno(errp, -rc, "Failed to connect to '%s'",
                          saddr->path);
         goto err;
     }
Signature · 1 line
2.28.0
#6 lore raw
In reply to Daniel P. Berrangé
Quoted 15 lines · Daniel P. Berrangé

The following changes since commit bbc48d2bcb9711614fbe751c2c5ae13e172fbca8:

Merge remote-tracking branch 'remotes/philmd-gitlab/tags/renesas-20201027' =
into staging (2020-10-28 16:25:31 +0000)

are available in the Git repository at:

https://gitlab.com/berrange/qemu tags/misc-next-pull-request

for you to fetch changes up to dfc00eb7dea43bfb6d4a2ba38c4f6bc9745f3729:

util: include the target address in socket connect failures (2020-10-29 09:=
57:37 +0000)

Quoted 7 lines

----------------------------------------------------------------
Misc fixes

* Improve socket cnnection failure error reporting
* Fix LGPL version number

----------------------------------------------------------------

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.2
for any user-visible changes.

-- PMM