From a0087e29ad992a054c2ff01b4580d329e9895ae8 Mon Sep 17 00:00:00 2001 From: gallatin Date: Wed, 29 Aug 2001 19:05:27 +0000 Subject: Fix linux_getcwd() so that if the cwd isn't cached (__getcwd() fails), the cwd is looked up inside the kernel. The native getcwd() in libc handles this in userland if __getcwd() fails. Obtained from: NetBSD via OpenBSD Tested by: Chris Casey , Markus Holmberg Reviewed by: Darrell Anderson PR: kern/24315 --- sys/modules/linux/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/modules') diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index c510b94..3360a40 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -5,8 +5,8 @@ MAINTAINER= marcel@FreeBSD.org .PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux KMOD= linux -SRCS= linux_file.c linux_ioctl.c linux_ipc.c linux_machdep.c linux_misc.c \ - linux_signal.c linux_socket.c linux_stats.c linux_mib.c \ +SRCS= linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c linux_machdep.c \ + linux_misc.c linux_signal.c linux_socket.c linux_stats.c linux_mib.c \ linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \ opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h OBJS= linux_locore.o -- cgit v1.1