patch-2.4.23 linux-2.4.23/fs/fcntl.c

Next file: linux-2.4.23/fs/inode.c
Previous file: linux-2.4.23/fs/exec.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/fs/fcntl.c linux-2.4.23/fs/fcntl.c
@@ -11,6 +11,7 @@
 #include <linux/smp_lock.h>
 #include <linux/slab.h>
 #include <linux/iobuf.h>
+#include <linux/ptrace.h>
 
 #include <asm/poll.h>
 #include <asm/siginfo.h>
@@ -293,6 +294,7 @@
 			 * to fix this will be in libc.
 			 */
 			err = filp->f_owner.pid;
+			force_successful_syscall_return();
 			break;
 		case F_SETOWN:
 			lock_kernel();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)