Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common no namlen on linux
details: https://anonhg.NetBSD.org/src/rev/37c2cbb03aab
branches: trunk
changeset: 350578:37c2cbb03aab
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 13 22:45:15 2017 +0000
description:
no namlen on linux
diffstat:
sys/compat/linux/common/linux_misc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e33760623d95 -r 37c2cbb03aab sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c Fri Jan 13 22:29:59 2017 +0000
+++ b/sys/compat/linux/common/linux_misc.c Fri Jan 13 22:45:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.235 2017/01/13 20:24:37 christos Exp $ */
+/* $NetBSD: linux_misc.c,v 1.236 2017/01/13 22:45:15 christos Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.235 2017/01/13 20:24:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.236 2017/01/13 22:45:15 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -788,7 +788,7 @@
*((char *)&idb + idb.d_reclen - 1) = bdp->d_type;
}
memcpy(idb.d_name, bdp->d_name,
- MIN(sizeof(idb.d_name), idb.d_namlen));
+ MIN(sizeof(idb.d_name), bdp->d_namlen));
if ((error = copyout((void *)&idb, outp, linux_reclen)))
goto out;
/* advance past this real entry */
Home |
Main Index |
Thread Index |
Old Index