Signed-off-by: Michael Fritscher <[email protected]>
---
 hw/9pfs/9p-local.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c
index fdc0a5bc76..bf6fb70b81 100644
--- a/hw/9pfs/9p-local.c
+++ b/hw/9pfs/9p-local.c
@@ -397,6 +397,9 @@ static int fchmodat_nofollow(int dirfd, const char *name, 
mode_t mode)
 
 static int local_set_xattrat(int dirfd, const char *path, FsCred *credp)
 {
+#ifdef _WIN32
+    return 0;
+#else
     int err;
 
     if (credp->fc_uid != -1) {
@@ -432,6 +435,7 @@ static int local_set_xattrat(int dirfd, const char *path, 
FsCred *credp)
         }
     }
     return 0;
+#endif
 }
 
 static int local_set_cred_passthrough(FsContext *fs_ctx, int dirfd,
-- 
2.13.2.windows.1


Reply via email to