patch-1.3.67 linux/fs/exec.c

Next file: linux/fs/ext/file.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.66/linux/fs/exec.c linux/fs/exec.c
@@ -167,7 +167,7 @@
 		for (fmt = formats ; fmt ; fmt = fmt->next) {
 			int (*fn)(int) = fmt->load_shlib;
 			if (!fn)
-				break;
+				continue;
 			retval = fn(fd);
 			if (retval != -ENOEXEC)
 				break;
@@ -658,7 +658,7 @@
 		for (fmt = formats ; fmt ; fmt = fmt->next) {
 			int (*fn)(struct linux_binprm *, struct pt_regs *) = fmt->load_binary;
 			if (!fn)
-				break;
+				continue;
 			retval = fn(&bprm, regs);
 			if (retval >= 0) {
 				iput(bprm.inode);

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