Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2022 10:20:18 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 1bb3faed29cf - main - linux(4): Fix unlinkat() after a125ed50
Message-ID:  <202205231020.24NAKIXo031152@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=1bb3faed29cf1f451bcdc396eaa4f8cc476f9159

commit 1bb3faed29cf1f451bcdc396eaa4f8cc476f9159
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-05-23 10:19:34 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-05-23 10:19:34 +0000

    linux(4): Fix unlinkat() after a125ed50
    
    MFC after:              2 weeks
---
 sys/compat/linux/linux_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 2664b38ad1ad..3b712cf71e60 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -778,7 +778,7 @@ linux_unlinkat_impl(struct thread *td, enum uio_seg pathseg, const char *path,
 	if (error == EPERM && !(args->flag & LINUX_AT_REMOVEDIR)) {
 		/* Introduce POSIX noncompliant behaviour of Linux */
 		if (kern_statat(td, AT_SYMLINK_NOFOLLOW, dfd, path,
-		    UIO_SYSSPACE, &st, NULL) == 0 && S_ISDIR(st.st_mode))
+		    pathseg, &st, NULL) == 0 && S_ISDIR(st.st_mode))
 			error = EISDIR;
 	}
 	return (error);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205231020.24NAKIXo031152>