Re: [PATCH] Fix compilation errors on Fedora Core 6 Test 2

John Ogness <[email protected]> Tue, 19 Sep 2006 11:51:29 +0200
Newsgroups gmane.linux.dazuko.devel
Message-ID <[email protected]>
Tikka, Sami wrote:
> I've uploaded a small patch that makes dazuko work on Fedora Core 6 Test 2

Hi,

The devfs changes were already previously made to dazuko_linux26.c. I've
made the same changes to dazuko_linux.c now as well.

Could you provide some explanation for this part of the patch (see attachment)?

John Ogness

-- 
Dazuko Maintainer

_______________________________________________
Dazuko-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dazuko-devel
dazuko-fedoracore6.patch (text/x-patch, 444 B)
--- orig/dazuko_linux.c
+++ mod/dazuko_linux.c
@@ -1848,9 +1850,11 @@
 		error = XXX_do_execve(filename, (char __user * __user *) regs.ecx, (char __user * __user *) regs.edx, &regs);
 		if (error == 0)
 		{
+			#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)
 			task_lock(current);
 			current->ptrace &= ~PT_DTRACE;
 			task_unlock(current);
+			#endif
 			/* Make sure we don't return using sysenter.. */
 			set_thread_flag(TIF_IRET);
 		}