git: e0aef0d62d2b - main - linux(4): Fix unlink() after a125ed50
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 May 2022 10:20:15 UTC
The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=e0aef0d62d2b14e754f25ef4f3582ae5faf8579c commit e0aef0d62d2b14e754f25ef4f3582ae5faf8579c Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-05-23 10:18:07 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-05-23 10:18:07 +0000 linux(4): Fix unlink() 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 199bed80d92a..2664b38ad1ad 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -741,7 +741,7 @@ linux_unlink(struct thread *td, struct linux_unlink_args *args) if (error == EPERM) { /* Introduce POSIX noncompliant behaviour of Linux */ if (kern_statat(td, 0, AT_FDCWD, args->path, - UIO_SYSSPACE, &st, NULL) == 0) { + UIO_USERSPACE, &st, NULL) == 0) { if (S_ISDIR(st.st_mode)) error = EISDIR; }