patch-2.2.18 linux/fs/binfmt_misc.c
Next file: linux/fs/binfmt_script.c
Previous file: linux/fs/binfmt_java.c
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Sat Oct 28 14:53:48 2000
-  Orig file: 
v2.2.17/fs/binfmt_misc.c
-  Orig date: 
Fri Apr 21 12:46:41 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/fs/binfmt_misc.c linux/fs/binfmt_misc.c
@@ -214,8 +214,8 @@
 	bprm->argc++;
 	bprm->p = copy_strings(1, &iname_addr, bprm->page, bprm->p, 2);
 	bprm->argc++;
-	retval = -E2BIG;
-	if (!bprm->p)
+	retval = (long)bprm->p;
+	if ((long)bprm->p < 0)
 		goto _ret;
 	bprm->filename = iname;	/* for binfmt_script */
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)