Revision faa44e3d hw/9pfs/virtio-9p-xattr.h
b/hw/9pfs/virtio-9p-xattr.h | ||
---|---|---|
54 | 54 |
static inline ssize_t pt_getxattr(FsContext *ctx, const char *path, |
55 | 55 |
const char *name, void *value, size_t size) |
56 | 56 |
{ |
57 |
return lgetxattr(rpath(ctx, path), name, value, size); |
|
57 |
char buffer[PATH_MAX]; |
|
58 |
return lgetxattr(rpath(ctx, path, buffer), name, value, size); |
|
58 | 59 |
} |
59 | 60 |
|
60 | 61 |
static inline int pt_setxattr(FsContext *ctx, const char *path, |
61 | 62 |
const char *name, void *value, |
62 | 63 |
size_t size, int flags) |
63 | 64 |
{ |
64 |
return lsetxattr(rpath(ctx, path), name, value, size, flags); |
|
65 |
char buffer[PATH_MAX]; |
|
66 |
return lsetxattr(rpath(ctx, path, buffer), name, value, size, flags); |
|
65 | 67 |
} |
66 | 68 |
|
67 | 69 |
static inline int pt_removexattr(FsContext *ctx, |
68 | 70 |
const char *path, const char *name) |
69 | 71 |
{ |
70 |
return lremovexattr(rpath(ctx, path), name); |
|
72 |
char buffer[PATH_MAX]; |
|
73 |
return lremovexattr(rpath(ctx, path, buffer), name); |
|
71 | 74 |
} |
72 | 75 |
|
73 | 76 |
static inline ssize_t notsup_getxattr(FsContext *ctx, const char *path, |
Also available in: Unified diff