Revision e95ead32 hw/virtio-9p.c
b/hw/virtio-9p.c | ||
---|---|---|
154 | 154 |
|
155 | 155 |
static int v9fs_do_chmod(V9fsState *s, V9fsString *path, mode_t mode) |
156 | 156 |
{ |
157 |
return s->ops->chmod(&s->ctx, path->data, mode); |
|
157 |
FsCred cred; |
|
158 |
cred_init(&cred); |
|
159 |
cred.fc_mode = mode; |
|
160 |
return s->ops->chmod(&s->ctx, path->data, &cred); |
|
158 | 161 |
} |
159 | 162 |
|
160 | 163 |
static int v9fs_do_mknod(V9fsState *s, V9fsString *path, mode_t mode, dev_t dev) |
Also available in: Unified diff