aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2017-04-30 05:56:57 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2017-04-30 05:56:57 +0000
commitc4f2941e0b131893cdda84d635d356eb273f2093 (patch)
tree745f9b77f60652069afa9586eedeb7fa8364ce9d /sys
parent07ff474a68f545ae5e560394f12c9ec29e349c0b (diff)
downloadsrc-c4f2941e0b131893cdda84d635d356eb273f2093.tar.gz
src-c4f2941e0b131893cdda84d635d356eb273f2093.zip
Fix symlinkat() which use the newdfd argument to look up the old path,
while it should use it for the new path instead. Reported by: trasz@ MFC after: 1 month
Notes
Notes: svn path=/head/; revision=317601
Diffstat (limited to 'sys')
-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 37b8595ea345..6480fc823a55 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) {