no namlen on linux
This commit is contained in:
parent
a2e94ed719
commit
1544402a99
@ -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 @@ again:
|
||||
*((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 */
|
||||
|
Loading…
Reference in New Issue
Block a user