summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-06-04 19:56:21 +0000
committerdchagin <dchagin@FreeBSD.org>2017-06-04 19:56:21 +0000
commit20146da1fc4dd2e2db520cd214d6fad1180d79e5 (patch)
tree1cee01c4fbdc961116a621d543dc8d47e6cf8bbe /sys/compat/linux/linux_file.c
parent279c74381bab0144788327c3da00075791f4be89 (diff)
downloadFreeBSD-src-20146da1fc4dd2e2db520cd214d6fad1180d79e5.zip
FreeBSD-src-20146da1fc4dd2e2db520cd214d6fad1180d79e5.tar.gz
MFC r317601:
Fix symlinkat() which use the newdfd argument to look up the old path, while it should use it for the new path instead. Approved by: re (kib)
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 37b8595..6480fc8 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -826,7 +826,7 @@ linux_symlinkat(struct thread *td, struct linux_symlinkat_args *args)
int error, dfd;
dfd = (args->newdfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->newdfd;
- LCONVPATHEXIST_AT(td, args->oldname, &path, dfd);
+ LCONVPATHEXIST(td, args->oldname, &path);
/* Expand LCONVPATHCREATE so that `path' can be freed on errors */
error = linux_emul_convpath(td, args->newname, UIO_USERSPACE, &to, 1, dfd);
if (to == NULL) {
OpenPOWER on IntegriCloud