]> Git Repo - qemu.git/blobdiff - hw/9pfs/9p-local.c
Merge remote-tracking branch 'remotes/famz/tags/docker-pull-request' into staging
[qemu.git] / hw / 9pfs / 9p-local.c
index 6d16c4a06587df695535da0fef5aa9f960b0202b..45e9a1f9b0caccfe5525f1c0127371e473d0bf7b 100644 (file)
@@ -349,7 +349,7 @@ static int local_set_cred_passthrough(FsContext *fs_ctx, int dirfd,
                                       const char *name, FsCred *credp)
 {
     if (fchownat(dirfd, name, credp->fc_uid, credp->fc_gid,
-                 AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH) < 0) {
+                 AT_SYMLINK_NOFOLLOW) < 0) {
         /*
          * If we fail to change ownership and if we are
          * using security model none. Ignore the error
@@ -960,7 +960,7 @@ static int local_unlinkat_common(FsContext *ctx, int dirfd, const char *name,
         if (flags == AT_REMOVEDIR) {
             int fd;
 
-            fd = openat(dirfd, name, O_RDONLY | O_DIRECTORY | O_PATH);
+            fd = openat_dir(dirfd, name);
             if (fd == -1) {
                 goto err_out;
             }
This page took 0.024067 seconds and 4 git commands to generate.