summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authorjmb <jmb@FreeBSD.org>1998-01-05 01:05:15 +0000
committerjmb <jmb@FreeBSD.org>1998-01-05 01:05:15 +0000
commitef679c74cb1d0f9bcbb7e8c99421382f255bdbba (patch)
treeccfc08d364556fa798e792a343413a84c8afdc59 /sys/compat/linux/linux_file.c
parentdd72def8271e1f84dcae5c4b9229eb89bc78202a (diff)
downloadFreeBSD-src-ef679c74cb1d0f9bcbb7e8c99421382f255bdbba.zip
FreeBSD-src-ef679c74cb1d0f9bcbb7e8c99421382f255bdbba.tar.gz
length argument to truncate() in linux emulation
was not being set copied to the bsd arguments.. frequently, resulting in files of over 100MB of NULs PR: 386/5044 Reviewed by: jmb Submitted by: (Richard Winkel) rich@math.missouri.edu
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 2dfad3f..13e7520 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_file.c,v 1.16 1997/12/05 19:55:37 bde Exp $
+ * $Id: linux_file.c,v 1.17 1997/12/16 18:49:23 eivind Exp $
*/
#include "opt_compat.h"
@@ -799,6 +799,7 @@ linux_truncate(struct proc *p, struct linux_truncate_args *args)
p->p_pid, args->path);
#endif
bsd.path = args->path;
+ bsd.length = args->length;
return otruncate(p, &bsd);
}
OpenPOWER on IntegriCloud