aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2014-11-11 22:08:18 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2014-11-11 22:08:18 +0000
commitefe28398f5d5851eff8a4c8d7db0dbab284e46de (patch)
tree841acbfac0a974de1e5f0b7c8b02bb8aebabf044 /sys
parentd971cd47f6a3a73d2c214be650901e2c64447f8d (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c2
-rw-r--r--sys/kern/uipc_syscalls.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index b2ec8b357d84..892d3c0a7007 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -1570,6 +1570,8 @@ freebsd32_do_sendfile(struct thread *td,
struct sf_hdtr32 hdtr32;
struct sf_hdtr hdtr;
struct uio *hdr_uio, *trl_uio;
+ struct file *fp;
+ cap_rights_t rights;
struct iovec32 *iov32;
off_t offset, sbytes;
int error;
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index b53883deff76..85487cd93a2f 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -1940,7 +1940,7 @@ do_sendfile(struct thread *td, struct sendfile_args *uap, int compat)
}
}
- AUDIT_ARG_FD(src_fd);
+ AUDIT_ARG_FD(uap->fd);
/*
* sendfile(2) can start at any offset within a file so we require