Commit 790db7ef authored by Bruce Rogers's avatar Bruce Rogers Committed by Greg Kurz
Browse files

9pfs: local: remove: use correct path component



Commit a0e640a8 introduced a path processing error.
Pass fstatat the dirpath based path component instead
of the entire path.

Signed-off-by: default avatarBruce Rogers <brogers@suse.com>
Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
parent 46458867
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1100,7 +1100,7 @@ static int local_remove(FsContext *ctx, const char *path)
        goto out;
    }

    if (fstatat(dirfd, path, &stbuf, AT_SYMLINK_NOFOLLOW) < 0) {
    if (fstatat(dirfd, name, &stbuf, AT_SYMLINK_NOFOLLOW) < 0) {
        goto err_out;
    }