From dbf35e279f37ad4a573bf93923d141cb4a454c7d Mon Sep 17 00:00:00 2001 From: attilio Date: Thu, 28 Aug 2008 15:23:18 +0000 Subject: Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread was always curthread and totally unuseful. Tested by: Giovanni Trematerra --- sys/compat/linux/linux_getcwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_getcwd.c') diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index 048609c..23e3737 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -142,7 +142,7 @@ linux_getcwd_scandir(lvpp, uvpp, bpp, bufp, td) * current directory is still locked. */ if (bufp != NULL) { - error = VOP_GETATTR(lvp, &va, td->td_ucred, td); + error = VOP_GETATTR(lvp, &va, td->td_ucred); if (error) { vput(lvp); *lvpp = NULL; -- cgit v1.1