virtiofsd: Fix check of chown()'s return value
commit4962b312cd2a09902efdf34d91f529164e321b8d
authorGreg Kurz <groug@kaod.org>
Fri, 7 May 2021 16:12:28 +0000 (7 18:12 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 13 May 2021 15:48:47 +0000 (13 17:48 +0200)
tree74939a1629ff9d0b169a61b1cbff9059c345c2db
parent28cbc87be58b490a31f5c2697c79cf0534cd3fea
virtiofsd: Fix check of chown()'s return value

Otherwise you always get this warning when using --socket-group=users

 vhost socket failed to set group to users (100)

While here, print out the error if chown() fails.

Fixes: f6698f2b03b0 ("tools/virtiofsd: add support for --socket-group")
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <162040394890.714971.15502455176528384778.stgit@bahia.lan>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
tools/virtiofsd/fuse_virtio.c