patch-1.3.46 linux/fs/exec.c

Next file: linux/fs/ext2/balloc.c
Previous file: linux/fs/dquot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.45/linux/fs/exec.c linux/fs/exec.c
@@ -666,7 +666,7 @@
 		goto exec_error2;
 	}
 	/* better not execute files which are being written to */
-	if (bprm.inode->i_wcount > 0) {
+	if (bprm.inode->i_writecount > 0) {
 		retval = -ETXTBSY;
 		goto exec_error2;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this