diff options
author | Peter Maydell | 2018-06-07 17:22:57 +0200 |
---|---|---|
committer | Peter Maydell | 2018-06-07 17:22:57 +0200 |
commit | a674da0ab7eae704c3f91749114ec6ca00c663d7 (patch) | |
tree | 23f8503e8b1977f8dd1d41cfa74cc840ade5d691 /hw/9pfs/9p-handle.c | |
parent | Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2018-06-06-1... (diff) | |
parent | 9p: xattr: Properly translate xattrcreate flags (diff) | |
download | qemu-a674da0ab7eae704c3f91749114ec6ca00c663d7.tar.gz qemu-a674da0ab7eae704c3f91749114ec6ca00c663d7.tar.xz qemu-a674da0ab7eae704c3f91749114ec6ca00c663d7.zip |
Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging
Mostly bug fixes and code sanitization motivated by the upcoming
support for Darwin hosts. Thanks to Keno Fischer.
# gpg: Signature made Thu 07 Jun 2018 11:30:56 BST
# gpg: using RSA key 71D4D5E5822F73D6
# gpg: Good signature from "Greg Kurz <groug@kaod.org>"
# gpg: aka "Gregory Kurz <gregory.kurz@free.fr>"
# gpg: aka "[jpeg image of size 3330]"
# Primary key fingerprint: B482 8BAF 9431 40CE F2A3 4910 71D4 D5E5 822F 73D6
* remotes/gkurz/tags/for-upstream:
9p: xattr: Properly translate xattrcreate flags
9p: Properly check/translate flags in unlinkat
9p: local: Avoid warning if FS_IOC_GETVERSION is not defined
9p: xattr: Fix crashes due to free of uninitialized value
9p: Move a couple xattr functions to 9p-util
9p: local: Properly set errp in fstatfs error path
9p: proxy: Fix size passed to `connect`
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/9pfs/9p-handle.c')
-rw-r--r-- | hw/9pfs/9p-handle.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/9pfs/9p-handle.c b/hw/9pfs/9p-handle.c index 4dc0d2bed1..f3641dbe4a 100644 --- a/hw/9pfs/9p-handle.c +++ b/hw/9pfs/9p-handle.c @@ -559,19 +559,13 @@ static int handle_unlinkat(FsContext *ctx, V9fsPath *dir, { int dirfd, ret; HandleData *data = (HandleData *) ctx->private; - int rflags; dirfd = open_by_handle(data->mountfd, dir->data, O_PATH); if (dirfd < 0) { return dirfd; } - rflags = 0; - if (flags & P9_DOTL_AT_REMOVEDIR) { - rflags |= AT_REMOVEDIR; - } - - ret = unlinkat(dirfd, name, rflags); + ret = unlinkat(dirfd, name, flags); close(dirfd); return ret; |