From: Sooyoung Ha Date: Fri, 5 Dec 2014 08:01:23 +0000 (+0900) Subject: hds: fix a file creation error on windows host. X-Git-Tag: TizenStudio_2.0_p3.0~396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96d2ac1f7274a69ec439581b75152bf9a4efd3a2;p=sdk%2Femulator%2Fqemu.git hds: fix a file creation error on windows host. Change-Id: I78d92223aa7e6c84cbdea0aeddfce65cb30fb291 Signed-off-by: Sooyoung Ha --- 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,