| Submitter | jvrao |
|---|---|
| Date | July 21, 2010, 4:04 p.m. |
| Message ID | <1279728299-28482-23-git-send-email-jvrao@linux.vnet.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/59482/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/virtio-9p-local.c b/hw/virtio-9p-local.c index 67f12ad..3aaf4b7 100644 --- a/hw/virtio-9p-local.c +++ b/hw/virtio-9p-local.c @@ -101,7 +101,7 @@ static int local_post_create_passthrough(FsContext *fs_ctx, const char *path, if (chmod(rpath(fs_ctx, path), credp->fc_mode & 07777) < 0) { return -1; } - if (chown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid) < 0) { + if (lchown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid) < 0) { /* * If we fail to change ownership and if we are * using security model none. Ignore the error