From 96d2ac1f7274a69ec439581b75152bf9a4efd3a2 Mon Sep 17 00:00:00 2001 From: Sooyoung Ha Date: Fri, 5 Dec 2014 17:01:23 +0900 Subject: [PATCH] hds: fix a file creation error on windows host. Change-Id: I78d92223aa7e6c84cbdea0aeddfce65cb30fb291 Signed-off-by: Sooyoung Ha --- hw/9pfs/virtio-9p-local-maru.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/9pfs/virtio-9p-local-maru.c b/hw/9pfs/virtio-9p-local-maru.c index 2147fd2..ce5b7fd 100644 --- a/hw/9pfs/virtio-9p-local-maru.c +++ b/hw/9pfs/virtio-9p-local-maru.c @@ -443,6 +443,7 @@ static int local_post_create_passthrough(FsContext *fs_ctx, const char *path, FsCred *credp) { #ifndef CONFIG_WIN32 + LOG_TRACE("[%d][ Enter >> %s]\n", __LINE__, __func__); char *buffer; buffer = rpath(fs_ctx, path); @@ -464,8 +465,11 @@ static int local_post_create_passthrough(FsContext *fs_ctx, const char *path, return 0; err: g_free(buffer); -#endif return -1; +#else //CONFIG_WIN32 + /* chown doesn't matter with the Windows environment. */ + return 0; +#endif } static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path, -- 2.7.4