* [PATCH] usb: fix u2f build
@ 2020-09-18 11:01 Gerd Hoffmann
2020-09-18 11:03 ` Daniel P. Berrangé
0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2020-09-18 11:01 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann, César Belley
Just use qemu_open_old() for a quick fix, switch
to better error handling left for another day.
Fixes: 448058aa99aa ("util: rename qemu_open() to qemu_open_old()")
Cc: César Belley <cesar.belley@lse.epita.fr>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/usb/u2f-emulated.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/usb/u2f-emulated.c b/hw/usb/u2f-emulated.c
index 9e1b829f3d32..9151feb63d44 100644
--- a/hw/usb/u2f-emulated.c
+++ b/hw/usb/u2f-emulated.c
@@ -200,7 +200,7 @@ static ssize_t u2f_emulated_read(const char *path, char *buffer,
int fd;
ssize_t ret;
- fd = qemu_open(path, O_RDONLY);
+ fd = qemu_open_old(path, O_RDONLY);
if (fd < 0) {
return -1;
}
@@ -217,7 +217,7 @@ static bool u2f_emulated_setup_counter(const char *path,
int fd, ret;
FILE *fp;
- fd = qemu_open(path, O_RDWR);
+ fd = qemu_open_old(path, O_RDWR);
if (fd < 0) {
return false;
}
--
2.27.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: fix u2f build
2020-09-18 11:01 [PATCH] usb: fix u2f build Gerd Hoffmann
@ 2020-09-18 11:03 ` Daniel P. Berrangé
2020-09-18 12:49 ` Daniel P. Berrangé
0 siblings, 1 reply; 3+ messages in thread
From: Daniel P. Berrangé @ 2020-09-18 11:03 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel, César Belley
On Fri, Sep 18, 2020 at 01:01:22PM +0200, Gerd Hoffmann wrote:
> Just use qemu_open_old() for a quick fix, switch
> to better error handling left for another day.
>
> Fixes: 448058aa99aa ("util: rename qemu_open() to qemu_open_old()")
> Cc: César Belley <cesar.belley@lse.epita.fr>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
> hw/usb/u2f-emulated.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: fix u2f build
2020-09-18 11:03 ` Daniel P. Berrangé
@ 2020-09-18 12:49 ` Daniel P. Berrangé
0 siblings, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2020-09-18 12:49 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel, César Belley
On Fri, Sep 18, 2020 at 12:03:12PM +0100, Daniel P. Berrangé wrote:
> On Fri, Sep 18, 2020 at 01:01:22PM +0200, Gerd Hoffmann wrote:
> > Just use qemu_open_old() for a quick fix, switch
> > to better error handling left for another day.
> >
> > Fixes: 448058aa99aa ("util: rename qemu_open() to qemu_open_old()")
> > Cc: César Belley <cesar.belley@lse.epita.fr>
> > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> > ---
> > hw/usb/u2f-emulated.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
BTW, this breakage shows that we're missing CI coverage for this
feature. the pre-requisite library needs to be added to any of the
dockerfiles where it is available and ensure its covered by at least
one of the gitlab CI jobs that exists.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-18 12:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-18 11:01 [PATCH] usb: fix u2f build Gerd Hoffmann
2020-09-18 11:03 ` Daniel P. Berrangé
2020-09-18 12:49 ` Daniel P. Berrangé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).